[bugfix] Filter fixes (#2971)

* Add Filter.Expired convenience method, consistent with mutes

* Add missing Swagger for filter keyword/status delete and for 403s on moved accounts
This commit is contained in:
Vyr Cossont
2024-06-06 11:16:20 -07:00
committed by GitHub
parent 5e2d4fdb19
commit e605788b4b
12 changed files with 165 additions and 2 deletions

View File

@ -838,8 +838,7 @@ func (c *Converter) statusToAPIFilterResults(
// Filter doesn't apply to this context.
continue
}
if !filter.ExpiresAt.IsZero() && filter.ExpiresAt.Before(now) {
// Filter is expired.
if filter.Expired(now) {
continue
}