Skip to content

Commit

Permalink
Merge pull request #1878 from whitep4nth3r/add-bsky-support
Browse files Browse the repository at this point in the history
Add support for bluesky urls with one test case
  • Loading branch information
wesbos authored Nov 15, 2024
2 parents d5e96df + 337da1d commit 8a9eb35
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
13 changes: 13 additions & 0 deletions src/components/Person.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,19 @@ export default function Person({ person }) {
</a>
</div>
)}

{/* If they have a bluesky, and no mastodon and no twitter, show that */}
{person.bluesky && !person.mastodon && !person.twitter && (
<div className="SocialHandle">
<a href={`https://bsky.app/profile/${person.bluesky}`}
target="_blank"
rel="noopener noreferrer"
>
<span className="at">@</span>
{person.bluesky}
</a>
</div>
)}
</div>
</div>
);
Expand Down
3 changes: 2 additions & 1 deletion src/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* @property {string} country - flag emoji for contributor's country
* @property {string} [twitter] - optional Twitter username (beginning with `@`)
* @property {string} [mastodon] - optional Mastodon username & server (beginning with `@`, ex: `@[email protected]`)
* @property {string} [bluesky] - optional Bluesky (bsky.app) handle (do not use `@`)
* @property {string} [emoji] - some emoji corresponding to the contributor
* @property {'apple' | 'windows' | 'linux' | 'bsd'} [computer]
* @property {'iphone' | 'android' | 'windowsphone' | 'flipphone'} [phone]
Expand Down Expand Up @@ -3844,7 +3845,7 @@ module.exports = [
name: 'Salma Alam-Naylor',
description: 'I write code for your entertainment.',
url: 'https://whitep4nth3r.com/uses',
twitter: '@whitep4nth3r',
bluesky: 'whitep4nth3r.com',
emoji: '⚡️',
country: '🇬🇧',
computer: 'apple',
Expand Down

0 comments on commit 8a9eb35

Please sign in to comment.