A bit prettier
This commit is contained in:
parent
83ce8024a3
commit
738377eeb9
|
@ -16,8 +16,11 @@ showpost='(.post | (.id | tostring)+" "+(.name | tostring)),
|
||||||
((.comment // .post) | .published,
|
((.comment // .post) | .published,
|
||||||
(.body // .content)),
|
(.body // .content)),
|
||||||
""'
|
""'
|
||||||
showcomment='(.post | (.id | tostring)+" "+(.name | tostring)),
|
postsummary='(.post | (.id | tostring)+" "+(.name | tostring)),
|
||||||
(.comment | (.parent_id | tostring)+"->"+(.id | tostring))+", "+(.creator.display_name // .creator.name)+":",
|
(.post.url)+", "+(.creator.display_name // .creator.name)+":",
|
||||||
|
((.comment // .post) | .published),
|
||||||
|
""'
|
||||||
|
showcomment='(.comment | (.parent_id | tostring)+"->"+(.id | tostring))+", "+(.creator.display_name // .creator.name)+":",
|
||||||
((.comment // .post) | .published,
|
((.comment // .post) | .published,
|
||||||
(.body // .content)),
|
(.body // .content)),
|
||||||
""'
|
""'
|
||||||
|
@ -48,7 +51,7 @@ shitpost(){ getbody; postid=$1; parentid=$2; post "comment" "{\"post_id\":$posti
|
||||||
#Post hoardan
|
#Post hoardan
|
||||||
save(){ put "post/save" "{\"post_id\":$1,\"save\":true}"; }
|
save(){ put "post/save" "{\"post_id\":$1,\"save\":true}"; }
|
||||||
unsave(){ put "post/save" "{\"post_id\":$1,\"save\":false}"; }
|
unsave(){ put "post/save" "{\"post_id\":$1,\"save\":false}"; }
|
||||||
load(){ getauth "post/list" ".posts | $posts" "type_=All&saved_only=true"; }
|
load(){ getauth "post/list" ".posts | .[] | $postsummary" "type_=All&saved_only=true"; }
|
||||||
#Community hoardan
|
#Community hoardan
|
||||||
follow(){ post "community/follow" "{\"community_id\":$1,\"follow\":true}"; }
|
follow(){ post "community/follow" "{\"community_id\":$1,\"follow\":true}"; }
|
||||||
unfollow(){ post "community/follow" "{\"community_id\":$1,\"follow\":false}"; }
|
unfollow(){ post "community/follow" "{\"community_id\":$1,\"follow\":false}"; }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user