Now fetches comments the new way, but doesn't fetch *all* comments...
This commit is contained in:
parent
aec63608a5
commit
64672de712
4
PKGBUILD
4
PKGBUILD
|
@ -5,10 +5,10 @@ pkgver=0.1.0
|
||||||
pkgrel=2
|
pkgrel=2
|
||||||
pkgdesc='A pure bash client for lemmy, with multiaccount support.'
|
pkgdesc='A pure bash client for lemmy, with multiaccount support.'
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url='https://gitea.rakka.tk/Zergling_man/clemmy'
|
url='http://precious.harpy.faith/Zergling_man/clemmy'
|
||||||
license=('GPL' 'custom:plusnigger.autism.exposed')
|
license=('GPL' 'custom:plusnigger.autism.exposed')
|
||||||
depends=('curl' 'jq')
|
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.
|
sha256sums=('SKIP') #Don't know how to use this on a repo.
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
|
|
@ -2,4 +2,5 @@
|
||||||
notifs(){ getauth "user/replies" ".replies | reverse | $notifs"; }
|
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"; }
|
||||||
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"; }
|
||||||
|
|
|
@ -18,6 +18,6 @@ notif='(.comment | (.parent_id | tostring)+"->"+(.id | tostring))+" ("+(.post |
|
||||||
(.body // .content)),
|
(.body // .content)),
|
||||||
""'
|
""'
|
||||||
|
|
||||||
comments=".[] | $showcomment"
|
comments_view=".[] | $showcomment"
|
||||||
posts=".[] | $showpost"
|
posts=".[] | $showpost"
|
||||||
notifs=".[] | $notif"
|
notifs=".[] | $notif"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user