1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2024-11-26 01:37:28 +00:00

Add 404 to profile pic refresh status codes

This commit is contained in:
Cadence Ember 2020-04-05 03:17:19 +12:00
parent 9fd9a00932
commit d9d47b1f36
No known key found for this signature in database
GPG Key ID: 128B99B1B74A6412

View File

@ -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 {