mirror of
https://github.com/styppo/hamstr.git
synced 2024-10-18 05:23:28 +00:00
Fix feed ordering
This commit is contained in:
parent
6513463cd2
commit
f53f780487
@ -111,7 +111,7 @@ export default {
|
||||
if (note.createdAt >= this.timestampNewest) {
|
||||
this.newer.push([note]) // TODO Single element thread
|
||||
} 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
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user