Skip to content

Commit e7ec5b6

Browse files
committed
Fix Mastodon socials posting link
1 parent 9bd901e commit e7ec5b6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/pages/open-letter.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ function mastodonDraftUrl(orgName: string, mastodonUrl: string): string {
4444
const url = new URL(mastodonUrl);
4545
const user = url.pathname.split('/').pop();
4646
const handle = `${user}@${url.hostname}`;
47-
const text = `Thank you ${handle} for supporting Keep Android Open @keepandroidopen@techhub.social #KeepAndroidOpen`;
48-
return `${url.origin}/share?text=${encodeURIComponent(text)}`;
47+
const text = `Thank you ${handle} for supporting Keep Android Open at https://keepandroidopen.org/open-letter/#signatories @keepandroidopen@techhub.social #KeepAndroidOpen`;
48+
return `https://share.joinmastodon.org/?text=${encodeURIComponent(text)}`;
4949
}
5050
5151
function linkedinDraftUrl(orgName: string, linkedinUrl: string): string {
@@ -60,7 +60,7 @@ function linkedinDraftUrl(orgName: string, linkedinUrl: string): string {
6060
<div class="signatories" id="signatories">
6161
<div class="sig-rule"></div>
6262
<h2>Signatories</h2>
63-
<p class="sig-count">{signatures.length} organizations</p>
63+
<p class="sig-count">{signatures.length} organizations from {new Set(signatures.map((s: any) => s.region).filter(Boolean)).size} countries</p>
6464
<ol>
6565
{signatures.map((sig: any) => (
6666
<li>

0 commit comments

Comments
 (0)