[bugfix] fix boost of account ID check (#3709)

This commit is contained in:
kim 2025-01-30 17:14:35 +00:00 committed by GitHub
parent 527587155a
commit 493de5c005
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
}