git ssb

10+

Matt McKegg / patchwork



Commit 8aaece459cf35d19c7635e39fdd6996ae3e029d2

show rollup likes in correct order (most recent first)

fixes #586
Matt McKegg committed on 7/18/2017, 4:11:14 AM
Parent: e88b1643ceed14a072a985675584d00a8e08b60e

Files changed

modules/feed/html/rollup.jschanged
modules/feed/html/rollup.jsView
@@ -162,9 +162,9 @@
162162 item.replies.forEach(msg => {
163163 var value = bumpFilter(msg)
164164 if (value) {
165165 var type = typeof value === 'string' ? value : getType(msg)
166- ;(groupedBumps[type] = groupedBumps[type] || []).push(msg)
166 + ;(groupedBumps[type] = groupedBumps[type] || []).unshift(msg)
167167 lastBumpType = type
168168 }
169169 })
170170
@@ -296,15 +296,8 @@
296296 return result
297297 }, new Set())
298298 }
299299
300-function isUpdate (msg) {
301- if (msg.value && msg.value.content) {
302- var type = msg.value.content.type
303- return type === 'about'
304- }
305-}
306-
307300 function isReply (msg) {
308301 if (msg.value && msg.value.content) {
309302 var type = msg.value.content.type
310303 return type === 'post' || (type === 'about' && msg.value.content.attendee)

Built with git-ssb-web