Reset before and after if no new values are found
All checks were successful
the build was successful

This commit is contained in:
Peter Stuifzand 2018-08-29 20:42:59 +02:00
parent dc5f9883f2
commit 572c108dc1
Signed by: peter
GPG Key ID: 374322D56E5209E8

View File

@ -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 {