Adjust X share url to help open in native app

This commit is contained in:
Sam Becker 2024-05-26 11:20:16 -05:00
parent 2408e7d30a
commit a6c6a56271

View File

@ -1,6 +1,6 @@
export const generateXPostText = (path: string, text: string) => {
const url = new URL('https://x.com/intent/post');
url.searchParams.set('text', text);
const url = new URL('https://x.com/intent/tweet');
url.searchParams.set('url', path);
url.searchParams.set('text', text);
return url.toString();
};