instanceinfo.sh: Improved PeerTube support.
This commit is contained in:
parent
8a249722a9
commit
eb1af4b8ca
|
@ -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."
|
||||
|
|
Loading…
Reference in New Issue