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:
Zergling_man 2023-06-02 11:16:28 +10:00
parent 555ef1db3a
commit ebd79fc601
2 changed files with 2 additions and 2 deletions

View File

@ -3,4 +3,4 @@ notifs(){ getauth "user/replies" ".replies | reverse | $notifs"; }
notifs2(){ getauth "user/mention" ".mentions | reverse | $notifs"; }
home(){ getauth "post/list" ".posts | $posts" "type_=Subscribed"; }
#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"; }

View File

@ -8,7 +8,7 @@ postsummary='(.post | (.id | tostring)+" "+(.name | tostring)),
(.post.url)+", "+(.creator.display_name // .creator.name)+":",
((.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,
(.body // .content)),
""'