fix fetching single tweet

This commit is contained in:
Vincent Cloutier 2022-11-26 17:15:30 -05:00
parent 84de2c5f4a
commit cde408413d

View file

@ -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)
{