Reset before and after if no new values are found
All checks were successful
the build was successful
All checks were successful
the build was successful
This commit is contained in:
parent
dc5f9883f2
commit
572c108dc1
|
@ -346,6 +346,9 @@ func (b *memoryBackend) TimelineGet(before, after, channel string) (microsub.Tim
|
|||
if len(itemScores) >= 2 {
|
||||
before = itemScores[1]
|
||||
after = itemScores[len(itemScores)-1]
|
||||
} else {
|
||||
before = ""
|
||||
after = ""
|
||||
}
|
||||
|
||||
for i := 0; i < len(itemScores); i += 2 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user