summaryrefslogtreecommitdiff
path: root/internal/api/client/timelines/public.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-03-25 17:20:45 +0100
committerLibravatar GitHub <noreply@github.com>2024-03-25 16:20:45 +0000
commit36f79e650c3cdf26290c879a4d5169ba1d7aedf4 (patch)
treeb5c222c9be449b1e73b5610eb68dd482e9410b27 /internal/api/client/timelines/public.go
parent[chore]: Bump github.com/gin-contrib/sessions from 0.0.5 to 1.0.0 (#2782) (diff)
downloadgotosocial-36f79e650c3cdf26290c879a4d5169ba1d7aedf4.tar.xz
[bugfix] Avoid empty public/local timeline queries (#2784)
Diffstat (limited to 'internal/api/client/timelines/public.go')
-rw-r--r--internal/api/client/timelines/public.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/api/client/timelines/public.go b/internal/api/client/timelines/public.go
index c4ffbc6c8..49530216f 100644
--- a/internal/api/client/timelines/public.go
+++ b/internal/api/client/timelines/public.go
@@ -150,7 +150,7 @@ func (m *Module) PublicTimelineGETHandler(c *gin.Context) {
resp, errWithCode := m.processor.Timeline().PublicTimelineGet(
c.Request.Context(),
- authed,
+ authed.Account,
c.Query(apiutil.MaxIDKey),
c.Query(apiutil.SinceIDKey),
c.Query(apiutil.MinIDKey),