This commit is contained in:
Vincent Cloutier 2023-02-04 13:23:51 -05:00
parent 9c451c0969
commit 81f54f0084
2 changed files with 3 additions and 3 deletions

View file

@ -163,7 +163,7 @@ namespace BirdsiteLive.Controllers
//return Redirect($"https://twitter.com/{id}/status/{statusId}");
var displayTweet = new DisplayTweet
{
Text = status.content,
Text = tweet.MessageContent,
OgUrl = $"https://twitter.com/{id}/status/{statusId}",
UserProfileImage = user.ProfileImageUrl,
UserName = user.Name,

View file

@ -2,13 +2,13 @@
@model DisplayTweet
@{
ViewData["Title"] = "Tweet";
ViewData["AlternateLink"] = Context.Request.GetDisplayUrl();
ViewData["AlternateLink"] = Context.Request.GetDisplayUrl().Replace("http", "https");
ViewData["MetaDescription"] = ViewData.Model.Text;
ViewData["MetaImage"] = ViewData.Model.UserProfileImage;
ViewData["MetaTitle"] = ViewData.Model.UserName;
}
<div align="center">
<blockquote class="twitter-tweet"><p lang="en" dir="ltr"><a href="@ViewData.Model.OgUrl">Tweet</a></blockquote>
<blockquote class="twitter-tweet"><p lang="en" dir="ltr">@ViewData.Model.Text<br><a href="@ViewData.Model.OgUrl">See Tweet</a></blockquote>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
</div>