Don't report 422 or 500 errors

This commit is contained in:
Shadowfacts 2023-09-09 11:40:18 -04:00
parent df9ce81060
commit 9c3be68e1c
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ private func captureError(_ error: Client.Error, in mastodonController: Mastodon
return
}
if let code = event.tags!["response_code"],
code == "401" || code == "403" || code == "404" || code == "502" || code == "503" {
code == "401" || code == "403" || code == "404" || code == "422" || code == "500" || code == "502" || code == "503" {
return
}
switch mastodonController.instanceFeatures.instanceType {