mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-29 22:36:14 -06:00
remove boosted statuses from public (federated timeline)
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
This commit is contained in:
parent
41ace19e0c
commit
6742a93a7b
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue