Skip to content

Commit 4fade7d

Browse files
committed
Update shared content
1 parent d8ecb64 commit 4fade7d

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

components/SingleApp.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -437,17 +437,20 @@ const ShareCard = ({ app, shareCardRef }) => {
437437
};
438438

439439
const shareToTwitter = () => {
440-
const link = `https://twitter.com/intent/tweet?text=${encodeURIComponent(`Checkout ${app.name} by ${app.publisher} on @winstallHQ:`)}&url=${encodeURIComponent(shareUrl)}`;
440+
const text = `Install ${app.name} instantly with winget.\nGet it on Winstall:\n${shareUrl}\n#winget #winstall`;
441+
const link = `https://twitter.com/intent/tweet?text=${encodeURIComponent(text)}`;
441442
window.open(link, '_blank');
442443
};
443444

444445
const shareToFacebook = () => {
445-
const link = `https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(shareUrl)}`;
446+
const quote = `Install ${app.name} instantly with winget.\nGet it on Winstall:\n${shareUrl}`;
447+
const link = `https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(shareUrl)}&quote=${encodeURIComponent(quote)}`;
446448
window.open(link, '_blank');
447449
};
448450

449451
const shareToLinkedIn = () => {
450-
const link = `https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(shareUrl)}`;
452+
const summary = `Install ${app.name} instantly with winget.\nGet it on Winstall:\n${shareUrl}\n#winget #winstall`;
453+
const link = `https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(shareUrl)}&summary=${encodeURIComponent(summary)}`;
451454
window.open(link, '_blank');
452455
};
453456

0 commit comments

Comments
 (0)