Added reverse statuses option

This commit is contained in:
localhost_frssoft 2022-04-15 02:02:55 +03:00
parent d7b08f768e
commit 49119c1d64
2 changed files with 5 additions and 0 deletions

View file

@ -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",

View file

@ -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)