From df0f302addc882f1d005597de6ac2bebe557b03e Mon Sep 17 00:00:00 2001 From: RVA2869 <144518518+RVA2869@users.noreply.github.com> Date: Wed, 8 Jan 2025 16:44:53 +0100 Subject: [PATCH 1/2] Add support Mastodon --- static/social-icons/mastodon.svg | 1 + templates/components/social-icons.html | 4 ++++ templates/org.html | 1 + 3 files changed, 6 insertions(+) create mode 100644 static/social-icons/mastodon.svg diff --git a/static/social-icons/mastodon.svg b/static/social-icons/mastodon.svg new file mode 100644 index 00000000000..e192feee733 --- /dev/null +++ b/static/social-icons/mastodon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/templates/components/social-icons.html b/templates/components/social-icons.html index 7be8f33d166..fd75dd30d49 100644 --- a/templates/components/social-icons.html +++ b/templates/components/social-icons.html @@ -23,6 +23,10 @@ {{- else if eq .property (uri "http://www.wikidata.org/entity/P2003") -}}{{/* Instagram */}} {{- $preview_count = add1 $preview_count -}}
  • + {{- else if eq .property (uri "http://www.wikidata.org/entity/P4033") -}}{{/* Mastodon */}} + {{- $preview_count = add1 $preview_count -}} +
  • + {{- end -}} {{- end -}} {{- if ne (sub (len $socialAccounts) $preview_count) 0 -}} diff --git a/templates/org.html b/templates/org.html index 23061dba3c9..20391c6a594 100644 --- a/templates/org.html +++ b/templates/org.html @@ -219,6 +219,7 @@

    Platforms and accounts

    P2037: ['Github', 'https://github.com/'], P4015: ['Vimeo', 'https://vimeo.com/'], P3267: ['Flickr', 'https://www.flickr.com/photos/'], + P4033: ['Mastodon', 'https://fedirect.toolforge.org/?id='], }; const propKeys = Object.keys(props); From d4bd72843c1047c2dbc9c90438c3dd17b4e2e4ea Mon Sep 17 00:00:00 2001 From: RVA2869 <144518518+RVA2869@users.noreply.github.com> Date: Wed, 8 Jan 2025 19:19:07 +0100 Subject: [PATCH 2/2] Update mastodon.svg --- static/social-icons/mastodon.svg | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/static/social-icons/mastodon.svg b/static/social-icons/mastodon.svg index e192feee733..bee87ccf44b 100644 --- a/static/social-icons/mastodon.svg +++ b/static/social-icons/mastodon.svg @@ -1 +1,9 @@ - \ No newline at end of file + + + + + + + + +