gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 446dbb7a7235a9d761fd1391a62c29157845bd90
parent 4c4a622088ef1db208930deb2d00cd1b2bcd708f
Author: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>
Date:   Fri, 10 Sep 2021 09:09:15 +0100

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

Signed-off-by: kim (grufwub) <grufwub@gmail.com>
Diffstat:
Minternal/visibility/statuspublictimelineable.go | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git 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