forked from Kieran/snort
fix: mixing timeline with no posts
This commit is contained in:
parent
36c1d9502c
commit
e72190b49f
@ -131,6 +131,12 @@ function weaveTimeline(
|
||||
// always skip 5 posts from start to avoid heavy handed weaving
|
||||
const skip = 5;
|
||||
|
||||
if (main.length < skip) {
|
||||
return [
|
||||
{ events: main, refTime: unixNow() }
|
||||
]
|
||||
}
|
||||
|
||||
const frags = Object.entries(hashtags).map(([k, v]) => {
|
||||
const take = v.slice(0, 5);
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user