From 64672de7123236c17da379b12383db70617425ae Mon Sep 17 00:00:00 2001 From: Zergling_man Date: Fri, 2 Jun 2023 10:38:41 +1000 Subject: [PATCH] Now fetches comments the new way, but doesn't fetch *all* comments... --- PKGBUILD | 4 ++-- commands/lurking.sh | 3 ++- pretty.sh | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index c08b8e2..df43397 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -5,10 +5,10 @@ pkgver=0.1.0 pkgrel=2 pkgdesc='A pure bash client for lemmy, with multiaccount support.' arch=('any') -url='https://gitea.rakka.tk/Zergling_man/clemmy' +url='http://precious.harpy.faith/Zergling_man/clemmy' license=('GPL' 'custom:plusnigger.autism.exposed') depends=('curl' 'jq') -source=('git+https://gitea.rakka.tk/Zergling_man/clemmy.git') +source=('git://precious.harpy.faith/Zergling_man/clemmy.git') sha256sums=('SKIP') #Don't know how to use this on a repo. package() { diff --git a/commands/lurking.sh b/commands/lurking.sh index d4748b5..2218a9a 100644 --- a/commands/lurking.sh +++ b/commands/lurking.sh @@ -2,4 +2,5 @@ notifs(){ getauth "user/replies" ".replies | reverse | $notifs"; } notifs2(){ getauth "user/mention" ".mentions | reverse | $notifs"; } home(){ getauth "post/list" ".posts | $posts" "type_=Subscribed"; } -comments(){ getauth "post" "(.post_view | $showpost), (.comments | reverse | $comments)" "id=$1"; } \ No newline at end of file +#This has to get complex now -.- +comments(){ getauth "post" "(.post_view | $showpost)" "id=$1"; getauth "comment/list" "(.comments | reverse | $comments_view)" "post_id=$1"; } diff --git a/pretty.sh b/pretty.sh index a53dae7..234dbb1 100644 --- a/pretty.sh +++ b/pretty.sh @@ -18,6 +18,6 @@ notif='(.comment | (.parent_id | tostring)+"->"+(.id | tostring))+" ("+(.post | (.body // .content)), ""' -comments=".[] | $showcomment" +comments_view=".[] | $showcomment" posts=".[] | $showpost" -notifs=".[] | $notif" \ No newline at end of file +notifs=".[] | $notif"