This commit is contained in:
Vincent Cloutier 2022-05-08 19:26:51 -04:00
parent 8d64720933
commit 1a288f4d2d

View file

@ -59,7 +59,7 @@ namespace BirdsiteLive.Twitter
_statisticsHandler.CalledTweetApi();
if (tweet == null) return null; //TODO: test this
return Extract(tweet.RootElement);
return tweet.RootElement.GetProperty("data").EnumerateArray().Select<JsonElement, ExtractedTweet>(Extract).ToArray().First();
}
catch (Exception e)
{