From 949490b890b3ef028f43d7216adf82d77e32f13e Mon Sep 17 00:00:00 2001 From: Zergling_man Date: Mon, 24 Oct 2022 05:02:05 +1100 Subject: [PATCH] Reversing notifs so that it's newest last, seems more usable that way. --- shitty_api.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shitty_api.sh b/shitty_api.sh index f7bdd17..c8f3a38 100755 --- a/shitty_api.sh +++ b/shitty_api.sh @@ -47,9 +47,9 @@ getbody(){ a=$(cat); b=${a//\"/\\\"}; while read n; do c="$c\n$n"; done <<< "$b" actions="notifs notifs2 comments freepost shitpost follow unfollow home deref whoami login" #Endpoints. #Lurkan -notifs(){ getauth "user/replies" ".replies | $notifs"; } -notifs2(){ getauth "user/mention" ".mentions | $notifs"; } -following(){ home; } +notifs(){ getauth "user/replies" ".replies | reverse | $notifs"; } +notifs2(){ getauth "user/mention" ".mentions | reverse | $notifs"; } +following(){ home; } # I am gonna fuck myself up so bad when I remap this. home(){ getauth "post/list" ".posts | $posts" "type_=Subscribed"; } comments(){ getauth "post" "(.post_view | $showpost), (.comments | reverse | $comments)" "id=$1"; } #Postan