repo: actpub action: blob revision: path_from: ap-getendpoint revision_from: refs/heads/master: path_to: revision_to:
blob of:
/ ap-getendpoint
refs/heads/master:/ap-getendpoint
#!/usr/bin/env bash if [ ! "$1" ];then printf "usage: ap-getendpoint\n" >&2 exit 1 fi printf 'endpoint for %s is\t' "$1" | spacify 80 >&2 if [ "$1" = "https://www.w3.org/ns/activitystreams#Public" ];then # lol hack hack hack printf 'UNDEFINED\n' >&2 exit 0 fi jq -r '.endpoints.sharedInbox//.inbox//""' < "$(ap-cacheactor "$1")" | tee /dev/stderr