feat(skebetter): 本文フッターにポスト自体のリンクを追記

This commit is contained in:
armonica committed 2026-11-06 22:43:49 +09:00
1 parent f2b2edc247
commit 3b856f6cbf
1 file changed
+11 -1
+11 -1
View File
@@ -451,6 +451,16 @@ internal static class skebetter
{
body.Append($" | <a href=\"https://x.com/{authorScreenName}\" target=\"_blank\" rel=\"noopener noreferrer\">@{authorScreenName}</a>");
}
// ポスト自体のリンク (x.com)
string? tweetIdStr = !string.IsNullOrEmpty(post.TweetUri) ? post.TweetUri : post.Id;
if (!string.IsNullOrEmpty(tweetIdStr))
{
string postUrl = !string.IsNullOrEmpty(authorScreenName)
? $"https://x.com/{authorScreenName}/status/{tweetIdStr}"
: $"https://x.com/i/web/status/{tweetIdStr}";
body.Append($" | <a href=\"{postUrl}\" target=\"_blank\" rel=\"noopener noreferrer\">ポストを開く</a>");
}
body.Append("</p>");
// 6. SyndicationItem の生成
@@ -674,4 +684,4 @@ internal static class skebetter
}
#endregion
}
}