mirror of
http://gitea.phreedom.club/localhost_frssoft/pleroma-cli
synced 2024-11-24 16:51:27 +00:00
Fix: not working accept/reject request after show statuses
This commit is contained in:
parent
f2a6a5ad03
commit
cc9ecb2754
|
@ -297,12 +297,12 @@ menu_follow_requests()
|
||||||
ids=$(echo "$follow_req" | jj -l \#.id | delq)
|
ids=$(echo "$follow_req" | jj -l \#.id | delq)
|
||||||
clear
|
clear
|
||||||
echo "Follow requests: $count"
|
echo "Follow requests: $count"
|
||||||
for i in $ids; do
|
for id in $ids; do
|
||||||
whoacct=$(echo "$follow_req" | jj "#[id=$i].acct")
|
whoacct=$(echo "$follow_req" | jj "#[id=$id].acct")
|
||||||
datecreate=$(echo "$follow_req" | jj "#[id=$i].created_at")
|
datecreate=$(echo "$follow_req" | jj "#[id=$id].created_at")
|
||||||
acct_display=$(echo "$follow_req" | jj "#[id=$i].display_name")
|
acct_display=$(echo "$follow_req" | jj "#[id=$id].display_name")
|
||||||
acct_bot=$(echo "$follow_req" | jj "#[id=$i].bot")
|
acct_bot=$(echo "$follow_req" | jj "#[id=$id].bot")
|
||||||
note=$(echo "$follow_req" | jj "#[id=$i].note" | html_to_txt_render)
|
note=$(echo "$follow_req" | jj "#[id=$id].note" | html_to_txt_render)
|
||||||
|
|
||||||
echo "$acct_display $whoacct"
|
echo "$acct_display $whoacct"
|
||||||
echo "Account creation date: $(date -d "$datecreate" "$format_time")"
|
echo "Account creation date: $(date -d "$datecreate" "$format_time")"
|
||||||
|
@ -312,8 +312,8 @@ menu_follow_requests()
|
||||||
while [ "$nonexit" -eq 1 ]; do
|
while [ "$nonexit" -eq 1 ]; do
|
||||||
choice=$(echo 'Accept\nReject\nShow statuses\nNothing' | fzy)
|
choice=$(echo 'Accept\nReject\nShow statuses\nNothing' | fzy)
|
||||||
case "$choice" in
|
case "$choice" in
|
||||||
"Accept") accept_follow_request "$i" && nonexit=0 ;;
|
"Accept") accept_follow_request "$id" && nonexit=0 ;;
|
||||||
"Reject") reject_follow_request "$i" && nonexit=0 ;;
|
"Reject") reject_follow_request "$id" && nonexit=0 ;;
|
||||||
"Show statuses") statuses_view_menu "$whoacct" ;;
|
"Show statuses") statuses_view_menu "$whoacct" ;;
|
||||||
"Nothing") nonexit=0 ;;
|
"Nothing") nonexit=0 ;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue