mirror of
https://github.com/discourse/discourse.git
synced 2024-11-21 16:38:15 -06:00
UX: change twitter share link to X (#29056)
This commit is contained in:
parent
d4379af7f2
commit
23fbaf7ee3
@ -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)}`;
|
||||
},
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user