2023-01-17 01:46:39 +11:00
|
|
|
#Community hoardan
|
2023-07-02 19:28:33 +10:00
|
|
|
follow(){ post "community/follow" '{"community_id":'$1',"follow":true}'; }
|
|
|
|
unfollow(){ post "community/follow" '{"community_id":'$1',"follow":false}'; }
|
2024-07-02 14:51:50 +10:00
|
|
|
following(){ get "community/list" ".communities | $communities_jq" "type_=Subscribed"; } # Alright it's time
|
2023-09-20 04:26:15 +10:00
|
|
|
|
|
|
|
comcreate(){ namedget desc "The community's display name (can be edited later)"; post "community" '{"name":"'$1'","title":"'"$desc"'"}'; }
|
|
|
|
comedit(){ echo "stub"; }
|
|
|
|
comdelete(){ namedget confirm "are you sure? (y/n)"; if [ confirm == "y" ]; then post "community/delete" '{"community_id":"'$1'","deleted":true}'; fi; }
|
|
|
|
addmod(){ echo "stub"; }
|
|
|
|
remmod(){ echo "stub"; }
|