From f2ebe2503a20645b8c5cef459dda3d3b139b992e Mon Sep 17 00:00:00 2001 From: eltrac Date: Mon, 30 Mar 2026 17:26:48 +0800 Subject: feat: add notice about how bridgy might not sync some fedi posts --- i18n/en.toml | 3 +-- i18n/zh.toml | 3 +-- layouts/_partials/posts/webmention.html | 6 ++++++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/i18n/en.toml b/i18n/en.toml index df17bf44..262766a3 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -75,14 +75,13 @@ webmentionPlaceholder = "Your post URL" send = "Send" [webmention] -fetching = "Fetching Webmention..." -formDesc = "You can write an article to respond to this post, or post something on social media, then submit the link of the related page here to send me Webmention." formPlaceholder = "URL of your post" submit = "Ping me!" likedBy = "%d people liked this page" mentionsHeading = "Mentions" interactOnFediverse = "Interact on Fediverse" mentionedThisPost = "mentioned this post" +bridgyNotice = 'Comments from Fediverse might not be bridged yet, see all interaction at %s.' [music] netease = "Netease Music" diff --git a/i18n/zh.toml b/i18n/zh.toml index fffe2e22..95823c20 100644 --- a/i18n/zh.toml +++ b/i18n/zh.toml @@ -81,8 +81,6 @@ webmentionPlaceholder = "你的文章 URL" send = "发送" [webmention] -fetching = "正在获取 Webmention..." -formDesc = "你可以撰写一篇文章回应此文,然后在这里提交相关页面的链接,只要提交的页面中包含这个页面的链接,即可向我发送 Webmention。" formPlaceholder = "你的文章的 URL" submit = "提交" likedBy = "%d 人喜欢了这篇文章" @@ -90,6 +88,7 @@ repliedAndMentionedBy = ",还有 %d 条回应和提及" mentionsHeading = "提及这篇文章的" interactOnFediverse = "在 Fediverse 上互动" mentionedThisPost = "提及了这篇文章" +bridgyNotice = '来自联邦宇宙的互动不总是会被桥接,你可以到 %s 查看完整互动。' [music] netease = "网易云音乐" diff --git a/layouts/_partials/posts/webmention.html b/layouts/_partials/posts/webmention.html index 2f9904e9..d93521fa 100644 --- a/layouts/_partials/posts/webmention.html +++ b/layouts/_partials/posts/webmention.html @@ -59,6 +59,12 @@ "othercount" (add (len $replies) (len $mentions)) ) }} + {{ with $page.Params.toot }} +

+ {{ $link := printf "Eucalyptus" . }} + *{{ printf (T "webmention.bridgyNotice") $link | safeHTML }} +

+ {{ end }}
{{ partial "posts/webmention-replies" $replies }} {{ partial "posts/webmention-mentions" $mentions }} -- cgit v1.2.3