remove boosted statuses from public (federated timeline)

Signed-off-by: kim (grufwub) <grufwub@gmail.com>
This commit is contained in:
kim (grufwub) 2021-09-10 08:28:13 +01:00
commit 6742a93a7b

View file

@ -32,6 +32,11 @@ func (f *filter) StatusPublictimelineable(ctx context.Context, targetStatus *gts
"statusID": targetStatus.ID, "statusID": targetStatus.ID,
}) })
// Don't timeline boosted statuses
if targetStatus.BoostOfID != "" {
return false, nil
}
// Don't timeline a reply // Don't timeline a reply
if targetStatus.InReplyToURI != "" || targetStatus.InReplyToID != "" || targetStatus.InReplyToAccountID != "" { if targetStatus.InReplyToURI != "" || targetStatus.InReplyToID != "" || targetStatus.InReplyToAccountID != "" {
return false, nil return false, nil