mirror of
http://gitea.phreedom.club/localhost_frssoft/pleroma-cli
synced 2024-11-22 02:01:27 +00:00
Fix mentions again...
This commit is contained in:
parent
713ec5b487
commit
6d22fea77c
|
@ -662,9 +662,9 @@ reply_mode()
|
||||||
echo "$reply_status" | jj -r content | html_to_txt_render | delqse | sed 's/^/> /' > tmp_status.md
|
echo "$reply_status" | jj -r content | html_to_txt_render | delqse | sed 's/^/> /' > tmp_status.md
|
||||||
fi
|
fi
|
||||||
if [ "$copy_mentions" = 'true' ]; then
|
if [ "$copy_mentions" = 'true' ]; then
|
||||||
mentions_reply=$(echo "$reply_status" | jj -l 'mentions.#.acct' | delq | legacy_addr_preprocess)
|
mentions_reply=$(echo "$reply_status" | jj -l 'mentions.#.acct' | delq)
|
||||||
mentions_reply="$mentions_reply\n"
|
mentions_reply="$mentions_reply\n"
|
||||||
acct_selfstatus=$(echo "$reply_status" | jj account.acct | legacy_addr_preprocess)
|
acct_selfstatus=$(echo "$reply_status" | jj account.acct)
|
||||||
mentions_reply=$(echo "$mentions_reply""$acct_selfstatus" | sort -u | tr '\n' ',' | sed -e 's/,$//g; s/^,//g')
|
mentions_reply=$(echo "$mentions_reply""$acct_selfstatus" | sort -u | tr '\n' ',' | sed -e 's/,$//g; s/^,//g')
|
||||||
fi
|
fi
|
||||||
write_status_menu "$(echo "$reply_status" | jj id)"
|
write_status_menu "$(echo "$reply_status" | jj id)"
|
||||||
|
@ -814,7 +814,7 @@ write_status_menu()
|
||||||
read mediaattach
|
read mediaattach
|
||||||
;;
|
;;
|
||||||
"Add recipient")
|
"Add recipient")
|
||||||
echo 'Input addr (ex. nick@domain.domain,etc@domain.domain)'
|
echo 'Input addr (ex. nick,nick_etc@domain.domain)'
|
||||||
read mentions_reply ;;
|
read mentions_reply ;;
|
||||||
"Change type") content_type=$(echo 'text/plain\ntext/markdown\ntext/html' | fzy) ;;
|
"Change type") content_type=$(echo 'text/plain\ntext/markdown\ntext/html' | fzy) ;;
|
||||||
"Visiblity")
|
"Visiblity")
|
||||||
|
|
Loading…
Reference in a new issue