mirror of
				https://git.sr.ht/~cadence/bibliogram
				synced 2025-10-31 03:25:36 +00:00 
			
		
		
		
	Add 403 to profile picture update status code list
This commit is contained in:
		
							parent
							
								
									41cbffa95a
								
							
						
					
					
						commit
						3e2cb7aa22
					
				| @ -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 { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user