feat(post menu): add copy link button (share link)

This commit is contained in:
Tom (plebeius.eth)
2024-05-27 18:42:31 +02:00
parent 219c05b6d1
commit caacd77bba
2 changed files with 83 additions and 62 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ export const isValidURL = (url: string) => {
};
export const copyShareLinkToClipboard = (subplebbitAddress: string, cid: string) => {
const shareLink = `https://pleb.bz/p/${subplebbitAddress}/c/${cid}`;
const shareLink = `https://pleb.bz/p/${subplebbitAddress}/c/${cid}?redirect=plebchan.eth.limo`;
if (navigator.clipboard) {
navigator.clipboard.writeText(shareLink);