From d9d47b1f368c1548c75355b89098f4944aee8c67 Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Sun, 5 Apr 2020 03:17:19 +1200 Subject: [PATCH] Add 404 to profile pic refresh status codes --- src/site/api/proxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/site/api/proxy.js b/src/site/api/proxy.js index fac218f..f4004b8 100644 --- a/src/site/api/proxy.js +++ b/src/site/api/proxy.js @@ -52,7 +52,7 @@ async function proxyResource(url, suggestedHeaders = {}, refreshCallback = null) headers: headersToReturn, stream: stream } - } else if (refreshCallback && response.status === 410) { // 410 GONE, profile picture has since changed + } else if (refreshCallback && (response.status === 410 || response.status === 404)) { // 410 GONE, profile picture has since changed return refreshCallback() } else { return {