Skip to content

Commit

Permalink
add bluesky to sharing urls
Browse files Browse the repository at this point in the history
  • Loading branch information
Rowanne Kabalan committed Jan 7, 2025
1 parent 0250dc3 commit 65cb79f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions dotcom-rendering/src/lib/sharing-urls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ export const getSharingUrls = (
},
baseUrl: 'fb-messenger://share',
},
bluesky: {
userMessage: 'Share on Bluesky',
params: {
text: `"${title}" ${articleUrl}`,
},
baseUrl: 'bluesky://intent/compose',
},
};

return Object.keys(platforms).reduce((shareUrls, platform) => {
Expand Down
3 changes: 2 additions & 1 deletion dotcom-rendering/src/types/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ export type SharePlatform =
| 'email'
| 'whatsApp'
| 'linkedIn'
| 'messenger';
| 'messenger'
| 'bluesky';

export type RichLinkCardType =
| 'special-report'
Expand Down

0 comments on commit 65cb79f

Please sign in to comment.