Make "after" and "before" exclusive when set

This commit is contained in:
Peter Stuifzand 2018-04-09 22:24:28 +02:00
parent 6ae8062dc6
commit 072af93608

View File

@ -376,9 +376,13 @@ func (b *memoryBackend) TimelineGet(after, before, channel string) microsub.Time
if len(after) == 0 {
after = "-inf"
} else {
after = "(" + after
}
if len(before) == 0 {
before = "+inf"
} else {
before = "(" + before
}
itemJSONs := [][]byte{}