From 8ce0d696540fc2f2c6b1ae9a80a0a4d87e57e10d Mon Sep 17 00:00:00 2001 From: Zergling_man Date: Thu, 15 Sep 2022 02:24:35 +1000 Subject: [PATCH] Post titles don't need quoting now... --- shitty_api.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}"; }