Fix feed ordering

This commit is contained in:
styppo 2023-01-31 23:17:32 +00:00
parent 6513463cd2
commit f53f780487
No known key found for this signature in database
GPG Key ID: 3AAA685C50724C28

View File

@ -111,7 +111,7 @@ export default {
if (note.createdAt >= this.timestampNewest) { if (note.createdAt >= this.timestampNewest) {
this.newer.push([note]) // TODO Single element thread this.newer.push([note]) // TODO Single element thread
} else if (note.createdAt >= this.timestampOldest) { } else if (note.createdAt >= this.timestampOldest) {
const idx = this.visible.findIndex(thread => thread[0].createdAt >= note.createdAt) const idx = this.visible.findIndex(thread => thread[0].createdAt <= note.createdAt)
this.visible.splice(idx, 0, [note]) // TODO Single element thread this.visible.splice(idx, 0, [note]) // TODO Single element thread
} }
}) })