From 7da53da8e11beb084cf3082187da57367439ad10 Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Sun, 17 Apr 2022 00:14:16 +0200 Subject: [PATCH] Problem: Items call returns 10 Items, 20 is better Solution: Items returns 20 items now --- 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 4bd4713..b4ddac9 100644 --- a/pkg/timeline/postgres.go +++ b/pkg/timeline/postgres.go @@ -136,7 +136,7 @@ WHERE "channel_id" = $1 qb.WriteString(` AND "published_at" < $2`) } } - qb.WriteString(` ORDER BY "published_at" DESC LIMIT 10`) + qb.WriteString(` ORDER BY "published_at" DESC LIMIT 20`) rows, err := conn.QueryContext(context.Background(), qb.String(), args...) if err != nil {