mirror of
http://gitea.phreedom.club/localhost_frssoft/pleroma-cli
synced 2024-11-22 02:01:27 +00:00
added show reply id status; show boost symbol
This commit is contained in:
parent
7ac63456c6
commit
53aef502c9
|
@ -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",
|
||||
|
|
|
@ -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/>*/>/g ; s/<*/</g ; s/"/\"/g ; s/'/'/g"
|
||||
|
|
Loading…
Reference in a new issue