From 294e1a6bd86e07bfc83ce669747fca3f55bede75 Mon Sep 17 00:00:00 2001 From: kim Date: Wed, 2 Apr 2025 19:50:50 +0100 Subject: [PATCH] add (now) missing slice reverse of tag timeline statuses when paging ASC --- internal/processing/timeline/tag.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/internal/processing/timeline/tag.go b/internal/processing/timeline/tag.go index 5a771431f..579d1cea9 100644 --- a/internal/processing/timeline/tag.go +++ b/internal/processing/timeline/tag.go @@ -21,6 +21,7 @@ import ( "context" "errors" "fmt" + "slices" apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" "github.com/superseriousbusiness/gotosocial/internal/db" @@ -71,6 +72,12 @@ func (p *Processor) TagTimelineGet( return nil, gtserror.NewErrorInternalError(err) } + if page.Order().Ascending() { + // Returned statuses always + // need to be in DESC order. + slices.Reverse(statuses) + } + return p.packageTagResponse( ctx, requestingAcct,