From 29faa6e72dddd925be87ef19ad8131b7378888e7 Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Tue, 26 Apr 2022 14:57:12 +0300 Subject: [PATCH] Change default format to text/plain; Add manual input recipients --- config.json | 2 +- pleroma-cli.sh | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/config.json b/config.json index ea27178..ea3a919 100644 --- a/config.json +++ b/config.json @@ -4,7 +4,7 @@ "per_status_mode": false, "enabled_nsfw": true, "hide_reblogs": false, - "default_content_type": "text/markdown", + "default_content_type": "text/plain", "default_visibility": "unlisted", "format_time": "+%d.%m.%Y %H:%M:%S", "boost_symbol": "[>>]", diff --git a/pleroma-cli.sh b/pleroma-cli.sh index 9ee7967..81e081a 100755 --- a/pleroma-cli.sh +++ b/pleroma-cli.sh @@ -572,7 +572,7 @@ reply_mode() reply_status=$(status_api_one "$status_id") fi if [ "$quoting_reply" = 'true' ]; then - echo "$reply_status" | jj content | html_to_txt_render | sed 's/^/> /' > tmp_status.md + echo "$reply_status" | jj -r content | html_to_txt_render | delqse | sed 's/^/> /' > tmp_status.md fi if [ "$copy_mentions" = 'true' ]; then mentions_reply=$(echo "$reply_status" | jj -l 'mentions.#.acct' | delq | legacy_addr_preprocess) @@ -713,7 +713,7 @@ write_status_menu() if [ -n "$http_code" ]; then echo "Send state: $http_code" fi - wrirepostmenu=$(echo "Edit\nSend\nAdd attach\nChange type\nVisiblity\nReset\nBack\nMain menu" | fzy) + wrirepostmenu=$(echo "Edit\nSend\nAdd attach\nAdd recipient\nChange type\nVisiblity\nReset\nBack\nMain menu" | fzy) case $wrirepostmenu in "Edit") $EDITOR tmp_status.md ;; "Send") http_code=$(write_api_status "$(cat tmp_status.md)") ;; @@ -721,6 +721,9 @@ write_status_menu() echo 'Input path to attach (ex. @image.png or @/full/path/to/attach.png)' read mediaattach ;; + "Add recipient") + echo 'Input addr (ex. nick@domain.domain,etc@domain.domain)' + read mentions_reply ;; "Change type") content_type=$(echo 'text/plain\ntext/markdown\ntext/html' | fzy) ;; "Visiblity") status_visibility=$(echo 'public\nunlisted\nlocal\nprivate\ndirect\nlist' | fzy)