summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2025-01-30 17:14:35 +0000
committerLibravatar GitHub <noreply@github.com>2025-01-30 18:14:35 +0100
commit493de5c0053b3bef7a0219144ff9bcca08f3a900 (patch)
treefb042ba6ed3f96e2a877c62f569ef9fa7487e20a
parentcheck boosted account ID when performing usermute checks (#3708) (diff)
downloadgotosocial-493de5c0053b3bef7a0219144ff9bcca08f3a900.tar.xz
[bugfix] fix boost of account ID check (#3709)
-rw-r--r--internal/typeutils/internaltofrontend.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/typeutils/internaltofrontend.go b/internal/typeutils/internaltofrontend.go
index d5c7cb0b1..71ff71f8b 100644
--- a/internal/typeutils/internaltofrontend.go
+++ b/internal/typeutils/internaltofrontend.go
@@ -943,8 +943,8 @@ func (c *Converter) statusToAPIFilterResults(
// Both mutes and filters can expire.
now := time.Now()
- // If requesting account mutes the author (taking boosts into account), hide it.
- if (s.BoostOfAccountID != "" && mutes.Matches(s.AccountID, filterContext, now)) ||
+ // If requesting account mutes the author (taking boosts into account), hide the status.
+ if (s.BoostOfAccountID != "" && mutes.Matches(s.BoostOfAccountID, filterContext, now)) ||
mutes.Matches(s.AccountID, filterContext, now) {
return nil, statusfilter.ErrHideStatus
}