From 145fdd8a798327b4882ce86c23cbf441a328b9c2 Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Sun, 31 Oct 2021 19:35:24 +0100 Subject: [PATCH] Use uid as _id --- pkg/timeline/postgres.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/timeline/postgres.go b/pkg/timeline/postgres.go index 367a688..8cfc38e 100644 --- a/pkg/timeline/postgres.go +++ b/pkg/timeline/postgres.go @@ -147,7 +147,7 @@ WHERE "channel_id" = $1 last = publishedAt item.Read = isRead == 1 - item.ID = strconv.Itoa(id) + item.ID = uid item.Published = publishedAt tl.Items = append(tl.Items, item)