Rename following to home, but keep compat for now
This commit is contained in:
parent
da8c90c96f
commit
c895e5672e
|
@ -44,12 +44,13 @@ put(){ curl -sX PUT "$baseurl$1" --json "$(echo ${*:2} | jq .+{\"auth\":\"$TOKE\
|
||||||
#Utils
|
#Utils
|
||||||
getbody(){ a=$(cat); body=${a//\"/\\\"}; }
|
getbody(){ a=$(cat); body=${a//\"/\\\"}; }
|
||||||
|
|
||||||
actions="notifs notifs2 comments freepost shitpost follow unfollow following deref whoami login"
|
actions="notifs notifs2 comments freepost shitpost follow unfollow home deref whoami login"
|
||||||
#Endpoints.
|
#Endpoints.
|
||||||
#Lurkan
|
#Lurkan
|
||||||
notifs(){ getauth "user/replies" ".replies | $notifs"; }
|
notifs(){ getauth "user/replies" ".replies | $notifs"; }
|
||||||
notifs2(){ getauth "user/mention" ".mentions | $notifs"; }
|
notifs2(){ getauth "user/mention" ".mentions | $notifs"; }
|
||||||
following(){ getauth "post/list" ".posts | $posts" "type_=Subscribed"; }
|
following(){ home; }
|
||||||
|
home(){ getauth "post/list" ".posts | $posts" "type_=Subscribed"; }
|
||||||
comments(){ getauth "post" "(.post_view | $showpost), (.comments | reverse | $comments)" "id=$1"; }
|
comments(){ getauth "post" "(.post_view | $showpost), (.comments | reverse | $comments)" "id=$1"; }
|
||||||
#Postan
|
#Postan
|
||||||
freepost(){ getbody; post "post" "{\"community_id\":$1,\"name\":\"${*:2}\",\"body\":\"$body\"}"; }
|
freepost(){ getbody; post "post" "{\"community_id\":$1,\"name\":\"${*:2}\",\"body\":\"$body\"}"; }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user