mirror of
http://gitea.phreedom.club/localhost_frssoft/pleroma-cli
synced 2024-11-25 11:51:28 +00:00
fix type request; Show statuses in menu follow requests
This commit is contained in:
parent
755fdc0df9
commit
c40b6aa97a
|
@ -282,12 +282,12 @@ following_requests()
|
||||||
|
|
||||||
accept_follow_request()
|
accept_follow_request()
|
||||||
{
|
{
|
||||||
default_curl_opt "$instance_point/follow_requests/$1/authorize"
|
post_request "$instance_point/follow_requests/$1/authorize"
|
||||||
}
|
}
|
||||||
|
|
||||||
reject_follow_requests()
|
reject_follow_requests()
|
||||||
{
|
{
|
||||||
default_curl_opt "$instance_point/follow_requests/$1/reject"
|
post_request "$instance_point/follow_requests/$1/reject"
|
||||||
}
|
}
|
||||||
|
|
||||||
menu_follow_requests()
|
menu_follow_requests()
|
||||||
|
@ -308,10 +308,11 @@ menu_follow_requests()
|
||||||
echo "Account creation date: $(date -d "$datecreate" "$format_time")"
|
echo "Account creation date: $(date -d "$datecreate" "$format_time")"
|
||||||
echo "Bot: $acct_bot"
|
echo "Bot: $acct_bot"
|
||||||
echo "Note:\n $note"
|
echo "Note:\n $note"
|
||||||
choice=$(echo 'Accept\nReject\nNothing' | fzy)
|
choice=$(echo 'Accept\nReject\nShow statuses\nNothing' | fzy)
|
||||||
case "$choice" in
|
case "$choice" in
|
||||||
"Accept") accept_follow_request "$i" ;;
|
"Accept") accept_follow_request "$i" ;;
|
||||||
"Reject") reject_follow_request "$i" ;;
|
"Reject") reject_follow_request "$i" ;;
|
||||||
|
"Show statuses") statuses_view_menu "$whoacct" ;;
|
||||||
"Nothing") echo ;;
|
"Nothing") echo ;;
|
||||||
esac
|
esac
|
||||||
clear
|
clear
|
||||||
|
|
Loading…
Reference in a new issue