From e4640ba6e17d274dbbad84792ec886ab516aa7a4 Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Thu, 4 Aug 2022 03:15:40 +0300 Subject: [PATCH] Fix reply to status --- pleroma-cli.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pleroma-cli.sh b/pleroma-cli.sh index 2caa22d..85e8050 100755 --- a/pleroma-cli.sh +++ b/pleroma-cli.sh @@ -700,9 +700,10 @@ reply_mode() read status_id reply_status=$(status_api_one "$status_id") fi - if [ "$quoting_reply" = 'true' && "$2" = '' ]; then + if [ "$quoting_reply" = 'true' ]; then echo "$reply_status" | jj -r content | html_to_txt_render | delqse | sed 's/^/> /' > tmp_status.md - elif [ "$2" = '1' ]; then + fi + if [ "$2" = '1' ]; then echo "$reply_status" | jj -r content | html_to_txt_render | delqse > tmp_status.md fi if [ "$copy_mentions" = 'true' ]; then