diff --git a/.env.example b/.env.example
index 4a06f640..2d53ff64 100644
--- a/.env.example
+++ b/.env.example
@@ -7,7 +7,7 @@ NEXT_PUBLIC_APP_NAME=xLog
NEXT_PUBLIC_OUR_DOMAIN=localhost:2222
NEXT_PUBLIC_SCORE_API_DOMAIN=localhost:2222
NEXT_PUBLIC_DISCORD_LINK="https://discord.gg/46VJMMVCuF"
-NEXT_PUBLIC_TWITTER_LINK="https://twitter.com/_xLog"
+NEXT_PUBLIC_TWITTER_LINK="https://x.com/_xLog"
NEXT_PUBLIC_GITHUB_LINK="https://github.com/Crossbell-Box/xlog"
NEXT_PUBLIC_CSB_IO="https://crossbell.io"
NEXT_PUBLIC_CSB_SCAN="https://scan.crossbell.io"
diff --git a/README.md b/README.md
index 6f3a7abc..6bdf26b8 100644
--- a/README.md
+++ b/README.md
@@ -5,7 +5,7 @@
> 🪽 An open-source creative community written on the blockchain.
-[](https://discord.gg/46VJMMVCuF) [](https://twitter.com/_xLog) [](https://github.com/Crossbell-Box/xLog/actions/workflows/docker-build-push-prod.yaml)
+[](https://discord.gg/46VJMMVCuF) [](https://x.com/_xLog) [](https://github.com/Crossbell-Box/xLog/actions/workflows/docker-build-push-prod.yaml)
## Introduction
diff --git a/public/assets/social/telegram.svg b/public/assets/social/telegram.svg
deleted file mode 100644
index fbccaada..00000000
--- a/public/assets/social/telegram.svg
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
\ No newline at end of file
diff --git a/public/assets/social/twitter.svg b/public/assets/social/twitter.svg
deleted file mode 100644
index 6d4e417d..00000000
--- a/public/assets/social/twitter.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/src/components/common/ReactionShare.tsx b/src/components/common/ReactionShare.tsx
index dd997394..586e1236 100644
--- a/src/components/common/ReactionShare.tsx
+++ b/src/components/common/ReactionShare.tsx
@@ -1,6 +1,5 @@
import { useTranslations } from "next-intl"
import dynamic from "next/dynamic"
-import Image from "next/image"
import { FC } from "react"
import { toast } from "react-hot-toast"
@@ -24,18 +23,11 @@ interface ShareData {
const shareList = [
{
- name: "Twitter",
- icon: (
-
- ),
+ name: "X",
+ icon:
,
onClick: (data: ShareData) => {
window.open(
- `https://twitter.com/intent/tweet?url=${
+ `https://x.com/intent/tweet?url=${
data.url
}&text=${encodeURIComponent(data.text)}&via=_xLog`,
)
@@ -44,10 +36,10 @@ const shareList = [
{
name: "Telegram",
icon: (
-
),
diff --git a/src/components/site/Platform.tsx b/src/components/site/Platform.tsx
index 47543b2f..467f291f 100644
--- a/src/components/site/Platform.tsx
+++ b/src/components/site/Platform.tsx
@@ -29,14 +29,15 @@ export const PlatformsSyncMap: {
url: "https://t.me/{username}",
},
twitter: {
- name: "Twitter",
- url: "https://twitter.com/{username}",
- portfolioDomain: `https://twitter.com/`,
+ name: "X",
+ icon: `${iconCDN}/x`,
+ url: "https://x.com/{username}",
+ portfolioDomain: `https://x.com/`,
},
twitter_id: {
- name: "Twitter",
- icon: `${iconCDN}/twitter`,
- url: "https://twitter.com/i/user/{username}",
+ name: "X",
+ icon: `${iconCDN}/x`,
+ url: "https://x.com/i/user/{username}",
},
x: {
name: "X",
diff --git a/src/lib/helpers.ts b/src/lib/helpers.ts
index b639f21d..7a98399f 100644
--- a/src/lib/helpers.ts
+++ b/src/lib/helpers.ts
@@ -59,7 +59,7 @@ export const getTwitterShareUrl = ({
return ""
}
- return `https://twitter.com/intent/tweet?url=${getSiteLink({
+ return `https://x.com/intent/tweet?url=${getSiteLink({
subdomain: site.handle!,
domain: site.metadata?.content?.custom_domain,
})}/${encodeURIComponent(slug)}&via=_xLog&text=${encodeURIComponent(