From 3e2cb7aa225244aaa88420e8f2d7731359a2640c Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Mon, 13 Apr 2020 03:23:19 +1200 Subject: [PATCH] Add 403 to profile picture update status code list --- 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 f4004b8..2b709c3 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 || response.status === 404)) { // 410 GONE, profile picture has since changed + } else if (refreshCallback && [410, 404, 403].includes(response.status)) { // profile picture has since changed return refreshCallback() } else { return {