mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2025-12-15 16:36:30 +00:00
Add 404 to profile pic refresh status codes
This commit is contained in:
parent
9fd9a00932
commit
d9d47b1f36
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ async function proxyResource(url, suggestedHeaders = {}, refreshCallback = null)
|
||||||
headers: headersToReturn,
|
headers: headersToReturn,
|
||||||
stream: stream
|
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()
|
return refreshCallback()
|
||||||
} else {
|
} else {
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue