optimize fetching timeline
This commit is contained in:
parent
b469f95de9
commit
5ac5555bf6
2 changed files with 6 additions and 2 deletions
|
@ -293,7 +293,12 @@ namespace BirdsiteLive.Twitter
|
||||||
.GetProperty("retweeted_status_result").GetProperty("result")
|
.GetProperty("retweeted_status_result").GetProperty("result")
|
||||||
.GetProperty("core").GetProperty("user_result").GetProperty("result")
|
.GetProperty("core").GetProperty("user_result").GetProperty("result")
|
||||||
.GetProperty("legacy").GetProperty("screen_name").GetString();
|
.GetProperty("legacy").GetProperty("screen_name").GetString();
|
||||||
OriginalAuthor = await _twitterUserService.GetUserAsync(OriginalAuthorUsername);
|
JsonElement OriginalAuthorDoc = tweet.GetProperty("content").GetProperty("content")
|
||||||
|
.GetProperty("tweetResult").GetProperty("result").GetProperty("legacy")
|
||||||
|
.GetProperty("retweeted_status_result").GetProperty("result")
|
||||||
|
.GetProperty("core").GetProperty("user_result").GetProperty("result");
|
||||||
|
OriginalAuthor = _twitterUserService.Extract(OriginalAuthorDoc);
|
||||||
|
//OriginalAuthor = await _twitterUserService.GetUserAsync(OriginalAuthorUsername);
|
||||||
retweetId = Int64.Parse(tweet.GetProperty("content").GetProperty("content")
|
retweetId = Int64.Parse(tweet.GetProperty("content").GetProperty("content")
|
||||||
.GetProperty("tweetResult").GetProperty("result").GetProperty("legacy")
|
.GetProperty("tweetResult").GetProperty("result").GetProperty("legacy")
|
||||||
.GetProperty("retweeted_status_result").GetProperty("result")
|
.GetProperty("retweeted_status_result").GetProperty("result")
|
||||||
|
|
|
@ -52,7 +52,6 @@ namespace BirdsiteLive.ActivityPub.Tests
|
||||||
Assert.IsTrue(tweets.Length > 5);
|
Assert.IsTrue(tweets.Length > 5);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Ignore]
|
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
public async Task TimelineGrant()
|
public async Task TimelineGrant()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue