mirror of
http://gitea.phreedom.club/localhost_frssoft/pleroma-cli
synced 2024-11-21 19:41:30 +00:00
some fixes
This commit is contained in:
parent
c40b6aa97a
commit
f2a6a5ad03
|
@ -285,7 +285,7 @@ accept_follow_request()
|
|||
post_request "$instance_point/follow_requests/$1/authorize"
|
||||
}
|
||||
|
||||
reject_follow_requests()
|
||||
reject_follow_request()
|
||||
{
|
||||
post_request "$instance_point/follow_requests/$1/reject"
|
||||
}
|
||||
|
@ -308,13 +308,16 @@ menu_follow_requests()
|
|||
echo "Account creation date: $(date -d "$datecreate" "$format_time")"
|
||||
echo "Bot: $acct_bot"
|
||||
echo "Note:\n $note"
|
||||
choice=$(echo 'Accept\nReject\nShow statuses\nNothing' | fzy)
|
||||
case "$choice" in
|
||||
"Accept") accept_follow_request "$i" ;;
|
||||
"Reject") reject_follow_request "$i" ;;
|
||||
"Show statuses") statuses_view_menu "$whoacct" ;;
|
||||
"Nothing") echo ;;
|
||||
esac
|
||||
nonexit=1
|
||||
while [ "$nonexit" -eq 1 ]; do
|
||||
choice=$(echo 'Accept\nReject\nShow statuses\nNothing' | fzy)
|
||||
case "$choice" in
|
||||
"Accept") accept_follow_request "$i" && nonexit=0 ;;
|
||||
"Reject") reject_follow_request "$i" && nonexit=0 ;;
|
||||
"Show statuses") statuses_view_menu "$whoacct" ;;
|
||||
"Nothing") nonexit=0 ;;
|
||||
esac
|
||||
done
|
||||
clear
|
||||
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue