diff options
author | 2021-09-10 09:09:15 +0100 | |
---|---|---|
committer | 2021-09-10 10:09:15 +0200 | |
commit | 446dbb7a7235a9d761fd1391a62c29157845bd90 (patch) | |
tree | 5477e3303e6a749a63f0fab15e96395b4660f7c7 | |
parent | Prune unnecessary nullzeros, fixup db tags (#200) (diff) | |
download | gotosocial-446dbb7a7235a9d761fd1391a62c29157845bd90.tar.xz |
remove boosted statuses from public (federated timeline) (#201)
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
-rw-r--r-- | internal/visibility/statuspublictimelineable.go | 5 |
1 files changed, 5 insertions, 0 deletions
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 |