mirror of
http://gitea.phreedom.club/localhost_frssoft/pleroma-cli
synced 2024-11-25 11:51:28 +00:00
Added reverse statuses option
This commit is contained in:
parent
d7b08f768e
commit
49119c1d64
|
@ -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",
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue