Reset read attribute for items

This commit is contained in:
Peter Stuifzand 2018-04-08 00:14:15 +02:00
parent 3fd42d7823
commit 110861a91f

View File

@ -304,6 +304,7 @@ func (b *memoryBackend) TimelineGet(after, before, channel string) microsub.Time
for _, obj := range itemJsons {
item := microsub.Item{}
json.Unmarshal(obj, &item)
item.Read = b.checkRead(channel, item.Id)
items = append(items, item)
}