diff --git a/shitty_api.sh b/shitty_api.sh index 798d424..2f2c8f4 100755 --- a/shitty_api.sh +++ b/shitty_api.sh @@ -12,7 +12,7 @@ TOKE=${tokes[0]} baseurl="https://$INSTANCE/api/v3/" # Please don't abuse jq like this showcomment='(.post | (.id | tostring)+" "+(.name | tostring)), -(.comment | (.parent_id | tostring)+"->"+(.id | tostring))+", "+(.creator.display_name // .creator.name)+":", +(.post.url // (.comment | (.parent_id | tostring)+"->"+(.id | tostring)))+", "+(.creator.display_name // .creator.name)+":", ((.comment // .post) | .published, (.body // .content)), ""' @@ -47,4 +47,4 @@ while getopts "a:h" o;do case "${o}" in esac done shift $((OPTIND-1)) -$* \ No newline at end of file +$*