Commit 8aaece459cf35d19c7635e39fdd6996ae3e029d2
show rollup likes in correct order (most recent first)
fixes #586Matt McKegg committed on 7/18/2017, 4:11:14 AM
Parent: e88b1643ceed14a072a985675584d00a8e08b60e
Files changed
modules/feed/html/rollup.js | changed |
modules/feed/html/rollup.js | ||
---|---|---|
@@ -162,9 +162,9 @@ | ||
162 | 162 | item.replies.forEach(msg => { |
163 | 163 | var value = bumpFilter(msg) |
164 | 164 | if (value) { |
165 | 165 | var type = typeof value === 'string' ? value : getType(msg) |
166 | - ;(groupedBumps[type] = groupedBumps[type] || []).push(msg) | |
166 | + ;(groupedBumps[type] = groupedBumps[type] || []).unshift(msg) | |
167 | 167 | lastBumpType = type |
168 | 168 | } |
169 | 169 | }) |
170 | 170 | |
@@ -296,15 +296,8 @@ | ||
296 | 296 | return result |
297 | 297 | }, new Set()) |
298 | 298 | } |
299 | 299 | |
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 | - | |
307 | 300 | function isReply (msg) { |
308 | 301 | if (msg.value && msg.value.content) { |
309 | 302 | var type = msg.value.content.type |
310 | 303 | return type === 'post' || (type === 'about' && msg.value.content.attendee) |
Built with git-ssb-web