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