Make "after" and "before" exclusive when set
This commit is contained in:
parent
6ae8062dc6
commit
072af93608
|
@ -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{}
|
||||
|
|
Loading…
Reference in New Issue
Block a user