From 12853a6ed2742c70006340fb23b7d1210b6a6532 Mon Sep 17 00:00:00 2001 From: Stefan Bohacek Date: Sun, 26 Feb 2023 19:33:11 -0500 Subject: [PATCH] Added link to topmastodonposts.com when submitting a bot via the official bookmarklet. --- template-submit-your-bot.php | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/template-submit-your-bot.php b/template-submit-your-bot.php index 0159246..4c5a41d 100644 --- a/template-submit-your-bot.php +++ b/template-submit-your-bot.php @@ -417,17 +417,24 @@ function get_network_name( $network_term_slug ){
- Paste just the URLs, one on each line, please. - get_twitter_username_from_url( $bot_urls_val ); - ?> -

- TweetSort - | - Social Bearing -

- + Paste just the URLs, one on each line, please. + get_domain_from_url( $bot_urls_val ); + $bot_username = $helpers->get_username_from_url( $bot_urls_val ); + + if ( $bot_url_domain === 'twitter.com' ){ + $twitter_username = $bot_username['username_twitter']; + ?> + | TweetSort + | Social Bearing + is_mastodon_instance($bot_urls_val) ){ + $fediverse_username = $bot_username['username']; + ?> + | Top Mastodon Posts +