fix getTweet 2
This commit is contained in:
parent
ebc7a3fdf8
commit
c924d3649d
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Reference in a new issue