mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
check boosted account ID when performing usermute checks (#3708)
This commit is contained in:
@ -943,8 +943,9 @@ func (c *Converter) statusToAPIFilterResults(
|
||||
// Both mutes and filters can expire.
|
||||
now := time.Now()
|
||||
|
||||
// If the requesting account mutes the account that created this status, hide the status.
|
||||
if mutes.Matches(s.AccountID, filterContext, now) {
|
||||
// If requesting account mutes the author (taking boosts into account), hide it.
|
||||
if (s.BoostOfAccountID != "" && mutes.Matches(s.AccountID, filterContext, now)) ||
|
||||
mutes.Matches(s.AccountID, filterContext, now) {
|
||||
return nil, statusfilter.ErrHideStatus
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user