Test with marking item as read
This commit is contained in:
parent
3fd7644fb2
commit
37329ffd8d
|
|
@ -177,8 +177,12 @@ func (b *memoryBackend) TimelineGet(after, before, channel string) microsub.Time
|
||||||
|
|
||||||
// Filter items with "published" date
|
// Filter items with "published" date
|
||||||
for _, r := range results {
|
for _, r := range results {
|
||||||
if b.wasRead(channel, r) {
|
r["_read"] = b.wasRead(channel, r)
|
||||||
continue
|
if uid, e := r["uid"]; e {
|
||||||
|
r["_id"] = uid
|
||||||
|
}
|
||||||
|
if uid, e := r["url"]; e {
|
||||||
|
r["_id"] = uid
|
||||||
}
|
}
|
||||||
|
|
||||||
if _, e := r["published"]; e {
|
if _, e := r["published"]; e {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user