Skip to content

Commit

Permalink
remove boosted statuses from public (federated timeline) (#201)
Browse files Browse the repository at this point in the history
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
  • Loading branch information
NyaaaWhatsUpDoc authored Sep 10, 2021
1 parent 4c4a622 commit 446dbb7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/visibility/statuspublictimelineable.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 446dbb7

Please sign in to comment.