fix ~cloutier/bird.makeup#21

This commit is contained in:
Vincent Cloutier 2023-07-12 21:14:39 -04:00
parent a6680df03e
commit 264320b1bf

View file

@ -166,7 +166,7 @@ namespace BirdsiteLive.Twitter
var httpResponse = await client.SendAsync(request);
var c = await httpResponse.Content.ReadAsStringAsync();
if (httpResponse.StatusCode == HttpStatusCode.Unauthorized)
if (httpResponse.StatusCode is HttpStatusCode.Unauthorized or HttpStatusCode.Forbidden)
{
_logger.LogError("Error retrieving timeline of {Username}; refreshing client", username);
await _twitterAuthenticationInitializer.RefreshClient(request);