diff --git a/shitty_api.sh b/shitty_api.sh index e8713b8..5f72269 100755 --- a/shitty_api.sh +++ b/shitty_api.sh @@ -52,7 +52,7 @@ notifs2(){ getauth "user/mention"; } following(){ getauth "post/list" ".posts | $posts" "type_=Subscribed"; } comments(){ getauth "post" "(.post_view | $showpost), (.comments | reverse | $comments)" "id=$1"; } #Postan -freepost(){ getbody; post "post" "{\"community_id\":$1,\"name\":\"$2\",\"body\":\"$body\"}"; } +freepost(){ getbody; post "post" "{\"community_id\":$1,\"name\":\"${*:2}\",\"body\":\"$body\"}"; } shitpost(){ getbody; postid=$1; parentid=$2; post "comment" "{\"post_id\":$postid,\"parent_id\":$parentid,\"content\":\"$body\"}"; } #Post hoardan save(){ put "post/save" "{\"post_id\":$1,\"save\":true}"; }