From 1606711d9837b21af39615eacd60b8c5262c2d80 Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Sat, 16 Apr 2022 20:43:55 +0200 Subject: [PATCH] Problem: Prev Page is for moving forward Solution: Use after in pagination --- pkg/timeline/postgres.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/timeline/postgres.go b/pkg/timeline/postgres.go index e164681..fced3ec 100644 --- a/pkg/timeline/postgres.go +++ b/pkg/timeline/postgres.go @@ -181,8 +181,8 @@ WHERE "channel_id" = $1 } // TODO: should only be set of there are more items available - tl.Paging.Before = last - // tl.Paging.After = last + // tl.Paging.Before = last + tl.Paging.After = last if tl.Items == nil { tl.Items = []microsub.Item{}