Adjust X share url to help open in native app
This commit is contained in:
parent
2408e7d30a
commit
a6c6a56271
@ -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();
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user