Skip to content

Commit

Permalink
share url update
Browse files Browse the repository at this point in the history
  • Loading branch information
supreme2580 committed Dec 5, 2024
1 parent ff4c92f commit 5020efa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/tabs/worlds/WorldItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const WorldItem = (props) => {
}, [props.favorites, props.favorited]);

function handleShare() {
const worldLink = `${window.location.origin}/worlds/${props.worldId}`;
const worldLink = `${window.location.origin}/worlds/${props.name}`;
const twitterShareUrl = `https://x.com/intent/post?text=${encodeURIComponent('Gm. Join our forces! Draw on our art/peace World! @art_peace_sn 🗺️')}&url=${encodeURIComponent(worldLink)}`;
window.open(twitterShareUrl, '_blank');
}
Expand Down

0 comments on commit 5020efa

Please sign in to comment.