From 53aef502c960ccd8771e0a58ccd966fff96ce6c3 Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Tue, 12 Apr 2022 21:06:23 +0300 Subject: [PATCH] added show reply id status; show boost symbol --- config.json | 2 ++ pleroma-cli.sh | 11 ++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/config.json b/config.json index c6018a7..d1e18b8 100644 --- a/config.json +++ b/config.json @@ -3,6 +3,8 @@ "max_statuses": 40, "default_content_type": "text/markdown", "default_visibility": "unlisted", + "format_time": "+%d.%m.%Y %H:%M:%S", + "boost_symbol": "[>>]", "public_list_instances": [ "outerheaven.club", "stereophonic.space", diff --git a/pleroma-cli.sh b/pleroma-cli.sh index 8af3e6e..014421b 100755 --- a/pleroma-cli.sh +++ b/pleroma-cli.sh @@ -6,7 +6,8 @@ instance_hist='instance.hist' max_statuses=$(jj -i config.json max_statuses) default_visibility=$(jj -i config.json default_visibility) default_content_type=$(jj -i config.json default_content_type) -format_time='+%d.%m.%Y %H:%M:%S' +format_time=$(jj -i config.json format_time) +boost_symbol=$(jj -i config.json boost_symbol) mkdir -m 711 -p .app_sessions touch .auth.json @@ -80,10 +81,18 @@ timeline_menu() while [ $indexator -gt 0 ]; do status=$(echo $json | jj $indexator) + reblog=$(echo $status | jj reblog) uri=$(echo $status | jj uri) id_status=$(echo $status | jj id) dateutc=$(echo $status | jj created_at) + reply_to_id=$(echo $status | jj in_reply_to_id) echo "$(date -d $dateutc "$format_time") <$id_status> $uri" + if [ -n "$reply_to_id" ]; then + echo "Reply to: $reply_to_id" + fi + if [ -n "$reblog" ]; then + echo "$boost_symbol" + fi echo $status | jj content | sed -e "s/]*>/\n/g ; s/]*>/\n/g ; s/<[^>]*>//g ; s/>*/>/g ; s/<*/