instanceinfo: Improve Mastodon fork detection.

This commit is contained in:
tastytea 2020-06-08 06:02:07 +02:00
parent 2ca244c36a
commit 1514ecf12b
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 3 additions and 1 deletions

View File

@ -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