Now fetches comments the new way, but doesn't fetch *all* comments...

This commit is contained in:
Zergling_man 2023-06-02 10:38:41 +10:00
parent aec63608a5
commit 64672de712
3 changed files with 6 additions and 5 deletions

View File

@ -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() {

View File

@ -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"; }
#This has to get complex now -.-
comments(){ getauth "post" "(.post_view | $showpost)" "id=$1"; getauth "comment/list" "(.comments | reverse | $comments_view)" "post_id=$1"; }

View File

@ -18,6 +18,6 @@ notif='(.comment | (.parent_id | tostring)+"->"+(.id | tostring))+" ("+(.post |
(.body // .content)),
""'
comments=".[] | $showcomment"
comments_view=".[] | $showcomment"
posts=".[] | $showpost"
notifs=".[] | $notif"
notifs=".[] | $notif"