diff --git a/pkg/timeline/postgres.go b/pkg/timeline/postgres.go index 44485be..2dc0c9b 100644 --- a/pkg/timeline/postgres.go +++ b/pkg/timeline/postgres.go @@ -158,6 +158,10 @@ WHERE "channel_id" = $1 tl.Paging.Before = last // tl.Paging.After = last + if tl.Items == nil { + tl.Items = []microsub.Item{} + } + return tl, nil }