fix fetching single tweet
This commit is contained in:
parent
84de2c5f4a
commit
cde408413d
1 changed files with 2 additions and 3 deletions
|
@ -67,10 +67,9 @@ namespace BirdsiteLive.Twitter
|
|||
|
||||
|
||||
var timeline = tweet.RootElement.GetProperty("data").GetProperty("threaded_conversation_with_injections_v2")
|
||||
.GetProperty("timeline_v2").GetProperty("timeline").GetProperty("instructions").EnumerateArray();
|
||||
.GetProperty("instructions").GetProperty("entries").EnumerateArray();
|
||||
|
||||
//return tweet.RootElement.GetProperty("data").EnumerateArray().Select<JsonElement, ExtractedTweet>(x => Extract(x, mediaExpension)).ToArray().First();
|
||||
return Extract( tweet.RootElement.GetProperty("data"));
|
||||
return Extract( timeline.First() );
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
|
Reference in a new issue