]> cat aescling's git repositories - mastodon.git/commit
Fix 404 error when filtering admin action logs by non-existent target account (#16643)
authorClaire <claire.github-309c@sitedethib.com>
Thu, 14 Oct 2021 18:53:11 +0000 (20:53 +0200)
committerGitHub <noreply@github.com>
Thu, 14 Oct 2021 18:53:11 +0000 (20:53 +0200)
commit9b978872cc1a86c7d82afda4060c909dc7ca2536
tree36a210c24d261c278ddf8ada34b817f161a35942
parent032d9bcaeda5cf2bf39f959bd6ba21bdc1c48f0c
Fix 404 error when filtering admin action logs by non-existent target account (#16643)

Currently, there is no way for an admin to delete an account record. However,
should that happen in the future, or should an admin mistype an account id,
`/admin/action_logs?target_account_id=<non-existent-account-id>` currently
returns a 404 instead of an empty list.

With this commit, the aforementioned page returns a correct list instead
(potentially non-empty if the account has been manually deleted)
app/models/admin/action_log_filter.rb