Comment parent IDs are back (server now supplies a full path instead), and newest comments are shown (in order) instead of whatever default is. That should become configurable, and better in other ways, later.
This commit is contained in:
parent
555ef1db3a
commit
ebd79fc601
|
@ -3,4 +3,4 @@ notifs(){ getauth "user/replies" ".replies | reverse | $notifs"; }
|
||||||
notifs2(){ getauth "user/mention" ".mentions | reverse | $notifs"; }
|
notifs2(){ getauth "user/mention" ".mentions | reverse | $notifs"; }
|
||||||
home(){ getauth "post/list" ".posts | $posts" "type_=Subscribed"; }
|
home(){ getauth "post/list" ".posts | $posts" "type_=Subscribed"; }
|
||||||
#This has to get complex now -.-
|
#This has to get complex now -.-
|
||||||
comments(){ getauth "post" "(.post_view | $showpost)" "id=$1"; getauth "comment/list" "(.comments | reverse | $comments_view)" "post_id=$1"; }
|
comments(){ getauth "post" "(.post_view | $showpost)" "id=$1"; getauth "comment/list" "(.comments | reverse | $comments_view)" "post_id=$1&sort=New"; }
|
||||||
|
|
|
@ -8,7 +8,7 @@ postsummary='(.post | (.id | tostring)+" "+(.name | tostring)),
|
||||||
(.post.url)+", "+(.creator.display_name // .creator.name)+":",
|
(.post.url)+", "+(.creator.display_name // .creator.name)+":",
|
||||||
((.comment // .post) | .published),
|
((.comment // .post) | .published),
|
||||||
""'
|
""'
|
||||||
showcomment='(.comment | (.parent_id | tostring)+"->"+(.id | tostring))+", "+(.creator.display_name // .creator.name)+":",
|
showcomment='(.comment | .path[2:])+", "+(.creator.display_name // .creator.name)+":",
|
||||||
((.comment // .post) | .published,
|
((.comment // .post) | .published,
|
||||||
(.body // .content)),
|
(.body // .content)),
|
||||||
""'
|
""'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user