added show reply id status; show boost symbol

This commit is contained in:
localhost_frssoft 2022-04-12 21:06:23 +03:00
parent 7ac63456c6
commit 53aef502c9
2 changed files with 12 additions and 1 deletions

View File

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

View File

@ -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/<br[^>]*>/\n/g
; s/<p[^>]*>/\n/g ; s/<[^>]*>//g
; s/&gt;*/>/g ; s/&lt;*/</g ; s/&quot;/\"/g ; s/&#39;/'/g"