mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-15 06:07:29 -06:00
[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:
parent
5e2d4fdb19
commit
e605788b4b
12 changed files with 165 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue