-
-
Save hasnolen/e2ded2c7e9b76919c0208ced213e63ab to your computer and use it in GitHub Desktop.
Fix: add popular mastodon URLs (implicitly remove non-mastodon social media URL)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-svg-icons.php b/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-svg-icons.php | |
index 3a82cf76ab..29d6c10b05 100644 | |
--- a/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-svg-icons.php | |
+++ b/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-svg-icons.php | |
@@ -127,6 +127,43 @@ class Twenty_Twenty_One_SVG_Icons { | |
'mail' => array( | |
'mailto:', | |
), | |
+ 'mastodon' => array( | |
+ 'mastodon.social', | |
+ 'pawoo.net', | |
+ 'mstdn.jp', | |
+ 'mastodon.cloud', | |
+ 'mastodon.online', | |
+ 'counter.social', | |
+ 'mstdn.social', | |
+ 'mas.to', | |
+ 'mastodon.world', | |
+ 'gc2.jp', | |
+ 'mastodon.lol', | |
+ 'pixelfed.social', | |
+ 'mastodon.sdf.org', | |
+ 'c.im', | |
+ 'mastodonapp.uk', | |
+ 'universeodon.com', | |
+ 'mastodon.uno', | |
+ 'masto.ai', | |
+ 'techhub.social', | |
+ 'fosstodon.org', | |
+ 'brighteon.social', | |
+ 'mastodon.top', | |
+ 'mstdn.party', | |
+ 'mamot.fr', | |
+ 'infosec.exchange', | |
+ 'm.cmx.im', | |
+ 'ohai.social', | |
+ 'sfba.social', | |
+ 'troet.cafe', | |
+ 'mastodon.poppingboxes.org', | |
+ 'hachyderm.io', | |
+ 'alive.bar', | |
+ 'home.social', | |
+ 'kolektiva.social', | |
+ 'masthead.social', | |
+ ), | |
'pocket' => array( | |
'getpocket.com', | |
), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment