remove boosted statuses from public (federated timeline) (#201)

Signed-off-by: kim (grufwub) <grufwub@gmail.com>
This commit is contained in:
kim 2021-09-10 09:09:15 +01:00 committed by GitHub
parent 4c4a622088
commit 446dbb7a72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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