From 49119c1d64f25d2523907d7821cce8d99d1ad8dd Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Fri, 15 Apr 2022 02:02:55 +0300 Subject: [PATCH] Added reverse statuses option --- config.json | 1 + pleroma-cli.sh | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/config.json b/config.json index d1e18b8..11b48f2 100644 --- a/config.json +++ b/config.json @@ -5,6 +5,7 @@ "default_visibility": "unlisted", "format_time": "+%d.%m.%Y %H:%M:%S", "boost_symbol": "[>>]", + "reversed_statuses": false, "public_list_instances": [ "outerheaven.club", "stereophonic.space", diff --git a/pleroma-cli.sh b/pleroma-cli.sh index b87ebbd..aea9de0 100755 --- a/pleroma-cli.sh +++ b/pleroma-cli.sh @@ -10,6 +10,7 @@ default_visibility=$(jj -i config.json default_visibility) default_content_type=$(jj -i config.json default_content_type) format_time=$(jj -i config.json format_time) boost_symbol=$(jj -i config.json boost_symbol) +reversed_statuses=$(jj -i config.json reversed_statuses) #[AUTH SECTION] mkdir -m 711 -p .app_sessions @@ -305,6 +306,9 @@ statuses_api_account() statuses_render() { + if [ "$reversed_statuses" = 'true' ]; then + ids_massive=$(echo $ids_massive | tr ' ' '\n' | tac | tr '\n' ' ') + fi for i in $ids_massive; do status=$(echo "$jsonmassive" | jj "#[id=$i]") reblog=$(echo $status | jj reblog.id)