UX: change twitter share link to X (#29056)

This commit is contained in:
marstall 2024-10-03 03:43:40 +09:00 committed by GitHub
parent d4379af7f2
commit 23fbaf7ee3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -7,10 +7,10 @@ export default {
Sharing.addSource({
id: "twitter",
icon: "fab-twitter",
icon: "fab-x-twitter",
generateUrl(link, title, quote = "") {
const text = quote ? `"${quote}" -- ` : title;
return `http://twitter.com/intent/tweet?url=${encodeURIComponent(
return `http://x.com/intent/tweet?url=${encodeURIComponent(
link
)}&text=${encodeURIComponent(text)}`;
},

View File

@ -157,7 +157,7 @@ en:
topic_html: 'Topic: <span class="topic-title">%{topicTitle}</span>'
post: "post #%{postNumber} by @%{username}"
close: "close"
twitter: "Share on Twitter"
twitter: "Share on X"
facebook: "Share on Facebook"
email: "Send via email"
url: "Copy and share URL"