instanceinfo.sh: Use Mastodon API additionally for Bookwyrm.

This commit is contained in:
tastytea 2021-02-22 00:06:27 +01:00
parent a9a076c06c
commit 342091a995
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 2 additions and 1 deletions

View File

@ -89,7 +89,8 @@ function parse_nodeinfo()
jq -r ".metadata.library.tracks.total" <<<"${json}"
elif [[ "${implementation}" == "mastodon" ]] ||
[[ "${implementation}" =~ don$ ]] ||
[[ "${implementation}" =~ ^masto ]]; then
[[ "${implementation}" =~ ^masto ]] ||
[[ "${implementation}" == "bookwyrm" ]]; then
echo -e "\nUsing Mastodon API additionally."
parse_mastodon ${instance} "https://${instance}/api/v1/instance"
elif [[ "${implementation}" == "pixelfed" ]]; then