fix getTweet 2

This commit is contained in:
Vincent Cloutier 2022-05-13 18:54:40 -04:00
parent ebc7a3fdf8
commit c924d3649d

View file

@ -67,7 +67,8 @@ namespace BirdsiteLive.Twitter
JsonElement mediaExpension;
tweet.RootElement.GetProperty("includes").TryGetProperty("media", out mediaExpension);
return tweet.RootElement.GetProperty("data").EnumerateArray().Select<JsonElement, ExtractedTweet>(x => Extract(x, mediaExpension)).ToArray().First();
//return tweet.RootElement.GetProperty("data").EnumerateArray().Select<JsonElement, ExtractedTweet>(x => Extract(x, mediaExpension)).ToArray().First();
return Extract( tweet.RootElement.GetProperty("data"), mediaExpension);
}
catch (Exception e)
{