From d184bdadea041cb552ccb65eda6d3ad937d17ab2 Mon Sep 17 00:00:00 2001 From: ihateblueb Date: Sat, 15 Mar 2025 11:16:59 -0400 Subject: [PATCH] don't alert for 501 api errors --- README.md | 1 + app/javascript/flavours/glitch/actions/alerts.js | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index 5834bdc543..1f48187fbe 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ - added bite notification support - add bite user and bite status buttons on status and status detailed components +- don't alert for 501 api errors # Chuckya (standalone frontend) diff --git a/app/javascript/flavours/glitch/actions/alerts.js b/app/javascript/flavours/glitch/actions/alerts.js index 42834146bf..ff5552104e 100644 --- a/app/javascript/flavours/glitch/actions/alerts.js +++ b/app/javascript/flavours/glitch/actions/alerts.js @@ -44,6 +44,10 @@ export const showAlertForError = (error, skipNotFound = false) => { }); } + // Reduce unnecessary popups for Iceshrimp.NET 501s + if (status === 501) + return null; + return showAlert({ title: `${status}`, message: data.error || statusText,