about summary refs log tree commit diff
path: root/app/javascript/mastodon/actions/alerts.js
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-04-09 05:02:48 +0200
committerGitHub <noreply@github.com>2019-04-09 05:02:48 +0200
commit56f29c38b603a98e7b9715c48de022106d8da073 (patch)
treeae9d1f6ecd5869a306059deebbe7ed9998d8123f /app/javascript/mastodon/actions/alerts.js
parentba1a78d1687a8e5bd1e969af41852a28192e5231 (diff)
Fix glitched out "not found" message for non-existing profiles in web UI (#10517)
Diffstat (limited to 'app/javascript/mastodon/actions/alerts.js')
-rw-r--r--app/javascript/mastodon/actions/alerts.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/javascript/mastodon/actions/alerts.js b/app/javascript/mastodon/actions/alerts.js
index 50cd48a9e..b2c7ab76a 100644
--- a/app/javascript/mastodon/actions/alerts.js
+++ b/app/javascript/mastodon/actions/alerts.js
@@ -34,6 +34,11 @@ export function showAlertForError(error) {
   if (error.response) {
     const { data, status, statusText } = error.response;
 
+    if (status === 404 || status === 410) {
+      // Skip these errors as they are reflected in the UI
+      return {};
+    }
+
     let message = statusText;
     let title   = `${status}`;