Don't need to use \n anymore, newline actually turns into \n
This commit is contained in:
parent
c895e5672e
commit
867903be00
|
@ -42,7 +42,7 @@ post(){ curl -s "$baseurl$1" --json "$(echo ${*:2} | jq .+{\"auth\":\"$TOKE\"})"
|
|||
put(){ curl -sX PUT "$baseurl$1" --json "$(echo ${*:2} | jq .+{\"auth\":\"$TOKE\"})"; }
|
||||
|
||||
#Utils
|
||||
getbody(){ a=$(cat); body=${a//\"/\\\"}; }
|
||||
getbody(){ a=$(cat); b=${a//\"/\\\"}; while read n; do c="$c\n$n"; done <<< "$b"; body="${c:2}"; }
|
||||
|
||||
actions="notifs notifs2 comments freepost shitpost follow unfollow home deref whoami login"
|
||||
#Endpoints.
|
||||
|
|
Loading…
Reference in New Issue
Block a user