From daa83cfd0db9a77cc7aee86fa5f5a82914570c04 Mon Sep 17 00:00:00 2001 From: kim Date: Tue, 1 Apr 2025 15:18:29 +0100 Subject: [PATCH] rewrite calls to public / local timeline calls --- internal/processing/timeline/public.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/internal/processing/timeline/public.go b/internal/processing/timeline/public.go index 915f3c8b0..01fb2d382 100644 --- a/internal/processing/timeline/public.go +++ b/internal/processing/timeline/public.go @@ -83,16 +83,16 @@ func (p *Processor) publicTimelineGet( // Pre-filtering function, // i.e. filter before caching. - nil, - - // Post-filtering function, - // i.e. filter after caching. func(s *gtsmodel.Status) (bool, error) { // Check the visibility of passed status to requesting user. ok, err := p.visFilter.StatusPublicTimelineable(ctx, requester, s) return !ok, err }, + + // Post-filtering function, + // i.e. filter after caching. + nil, ) } @@ -136,15 +136,15 @@ func (p *Processor) localTimelineGet( // Pre-filtering function, // i.e. filter before caching. - nil, - - // Post-filtering function, - // i.e. filter after caching. func(s *gtsmodel.Status) (bool, error) { // Check the visibility of passed status to requesting user. ok, err := p.visFilter.StatusPublicTimelineable(ctx, requester, s) return !ok, err }, + + // Post-filtering function, + // i.e. filter after caching. + nil, ) }