fix ~cloutier/bird.makeup#21
This commit is contained in:
parent
a6680df03e
commit
264320b1bf
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue