instanceinfo.sh: Improved PeerTube support.

This commit is contained in:
tastytea 2019-07-16 17:12:59 +02:00
parent 8a249722a9
commit eb1af4b8ca
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash
# Print some basic info about fediverse instances.
# Version: 2019-07-16_1
# Version: 2019-07-16_2
if [[ -z "${1}" ]]; then
echo "usage: ${0} DOMAIN" >&2
@ -101,6 +101,8 @@ function main()
echo "Further info, maybe: https://${instance}/about/more"
elif [[ "${implementation}" == "pixelfed" ]]; then
echo "Further info, maybe: https://${instance}/site/terms"
elif [[ "${implementation}" == "peertube" ]]; then
echo "Further info, maybe: https://${instance}/about/instance"
fi
elif curl -sILf "${mastoinfo}" | grep -iq 'Content-Type: application/json'; then
echo "Mastodon API found."