Update PostLayout to support parsing x.com usernames
This commit is contained in:
parent
abfa4b6940
commit
d1e84b91d2
@ -81,7 +81,7 @@ export default function PostLayout({ content, authorDetails, next, prev, childre
|
||||
href={author.twitter}
|
||||
className="text-primary-500 hover:text-primary-600 dark:hover:text-primary-400"
|
||||
>
|
||||
{author.twitter.replace('https://twitter.com/', '@')}
|
||||
{author.twitter.replace('https://twitter.com/', '@').replace('https://x.com/', '@')}
|
||||
</Link>
|
||||
)}
|
||||
</dd>
|
||||
|
Loading…
x
Reference in New Issue
Block a user