mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-02-04 23:27:09 +01:00
[bugfix] fix boost of account ID check (#3709)
This commit is contained in:
parent
527587155a
commit
493de5c005
1 changed files with 2 additions and 2 deletions
|
@ -943,8 +943,8 @@ func (c *Converter) statusToAPIFilterResults(
|
||||||
// Both mutes and filters can expire.
|
// Both mutes and filters can expire.
|
||||||
now := time.Now()
|
now := time.Now()
|
||||||
|
|
||||||
// If requesting account mutes the author (taking boosts into account), hide it.
|
// If requesting account mutes the author (taking boosts into account), hide the status.
|
||||||
if (s.BoostOfAccountID != "" && mutes.Matches(s.AccountID, filterContext, now)) ||
|
if (s.BoostOfAccountID != "" && mutes.Matches(s.BoostOfAccountID, filterContext, now)) ||
|
||||||
mutes.Matches(s.AccountID, filterContext, now) {
|
mutes.Matches(s.AccountID, filterContext, now) {
|
||||||
return nil, statusfilter.ErrHideStatus
|
return nil, statusfilter.ErrHideStatus
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue