From 446dbb7a7235a9d761fd1391a62c29157845bd90 Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Fri, 10 Sep 2021 09:09:15 +0100 Subject: [PATCH] remove boosted statuses from public (federated timeline) (#201) Signed-off-by: kim (grufwub) --- internal/visibility/statuspublictimelineable.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/visibility/statuspublictimelineable.go b/internal/visibility/statuspublictimelineable.go index 8d0a7aa28..b815ac309 100644 --- a/internal/visibility/statuspublictimelineable.go +++ b/internal/visibility/statuspublictimelineable.go @@ -32,6 +32,11 @@ func (f *filter) StatusPublictimelineable(ctx context.Context, targetStatus *gts "statusID": targetStatus.ID, }) + // Don't timeline boosted statuses + if targetStatus.BoostOfID != "" { + return false, nil + } + // Don't timeline a reply if targetStatus.InReplyToURI != "" || targetStatus.InReplyToID != "" || targetStatus.InReplyToAccountID != "" { return false, nil