7 lines
465 B
Bash
7 lines
465 B
Bash
|
#Post hoardan
|
||
|
save(){ put "post/save" "{\"post_id\":$1,\"save\":true}"; }
|
||
|
unsave(){ put "post/save" "{\"post_id\":$1,\"save\":false}"; }
|
||
|
load(){ getauth "post/list" ".posts | .[] | $postsummary" "type_=All&saved_only=true"; }
|
||
|
#Postan
|
||
|
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\"}"; }
|