Also rewrite RT URLs

This commit is contained in:
Miss Pasture 2021-06-02 17:23:57 -04:00
parent 6ab26f9f7a
commit 7fbd12102b
1 changed files with 4 additions and 1 deletions

View File

@ -50,7 +50,10 @@ namespace BirdsiteLive.Twitter.Extractors
{
if (tweet.RetweetedTweet != null)
{
return tweet.RetweetedTweet.Url;
var uri = new UriBuilder(tweet.RetweetedTweet.Url);
uri.Host = _instanceSettings.TwitterDomain;
return uri.Uri.ToString();
}
if (tweet.FullText.Contains("https://t.co/"))
{