From 1514ecf12b8c0e2162ce94fe54486cb151692c16 Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 8 Jun 2020 06:02:07 +0200 Subject: [PATCH] instanceinfo: Improve Mastodon fork detection. --- instanceinfo.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/instanceinfo.sh b/instanceinfo.sh index 0d790fc..64b2a60 100755 --- a/instanceinfo.sh +++ b/instanceinfo.sh @@ -87,7 +87,9 @@ function parse_nodeinfo() jq -rj ".metadata.library.artists.total" <<<"${json}" echo -n " / " jq -r ".metadata.library.tracks.total" <<<"${json}" - elif [[ "${implementation}" == "mastodon" ]]; then + elif [[ "${implementation}" == "mastodon" ]] || + [[ "${implementation}" =~ don$ ]] || + [[ "${implementation}" =~ ^masto ]]; then echo -e "\nUsing Mastodon API additionally." parse_mastodon ${instance} "https://${instance}/api/v1/instance" elif [[ "${implementation}" == "pixelfed" ]]; then