diff --git a/page-mastodon.php b/page-mastodon.php index 0a651d2..f1f9d3f 100644 --- a/page-mastodon.php +++ b/page-mastodon.php @@ -28,7 +28,7 @@ window.onload = function() { function formatHTML(toots) { let htmlString = ''; toots.forEach(toot => { - const { content, account, created_at, media_attachments} = toot; + const { content, account, url, created_at, media_attachments} = toot; let mediaHTML = ''; // 初始化资源相关HTML为空字符串 // 处理媒体附件 if (media_attachments.length > 0) { @@ -46,7 +46,7 @@ window.onload = function() {
- ${new Date(created_at).toLocaleString()} + ${new Date(created_at).toLocaleString()}
${htmlContent}