mirror of
http://gitea.phreedom.club/localhost_frssoft/pleroma-cli
synced 2024-11-22 08:11:28 +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,
|
"max_statuses": 40,
|
||||||
"default_content_type": "text/markdown",
|
"default_content_type": "text/markdown",
|
||||||
"default_visibility": "unlisted",
|
"default_visibility": "unlisted",
|
||||||
|
"format_time": "+%d.%m.%Y %H:%M:%S",
|
||||||
|
"boost_symbol": "[>>]",
|
||||||
"public_list_instances": [
|
"public_list_instances": [
|
||||||
"outerheaven.club",
|
"outerheaven.club",
|
||||||
"stereophonic.space",
|
"stereophonic.space",
|
||||||
|
|
|
@ -6,7 +6,8 @@ instance_hist='instance.hist'
|
||||||
max_statuses=$(jj -i config.json max_statuses)
|
max_statuses=$(jj -i config.json max_statuses)
|
||||||
default_visibility=$(jj -i config.json default_visibility)
|
default_visibility=$(jj -i config.json default_visibility)
|
||||||
default_content_type=$(jj -i config.json default_content_type)
|
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
|
mkdir -m 711 -p .app_sessions
|
||||||
touch .auth.json
|
touch .auth.json
|
||||||
|
@ -80,10 +81,18 @@ timeline_menu()
|
||||||
|
|
||||||
while [ $indexator -gt 0 ]; do
|
while [ $indexator -gt 0 ]; do
|
||||||
status=$(echo $json | jj $indexator)
|
status=$(echo $json | jj $indexator)
|
||||||
|
reblog=$(echo $status | jj reblog)
|
||||||
uri=$(echo $status | jj uri)
|
uri=$(echo $status | jj uri)
|
||||||
id_status=$(echo $status | jj id)
|
id_status=$(echo $status | jj id)
|
||||||
dateutc=$(echo $status | jj created_at)
|
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"
|
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
|
echo $status | jj content | sed -e "s/<br[^>]*>/\n/g
|
||||||
; s/<p[^>]*>/\n/g ; s/<[^>]*>//g
|
; s/<p[^>]*>/\n/g ; s/<[^>]*>//g
|
||||||
; s/>*/>/g ; s/<*/</g ; s/"/\"/g ; s/'/'/g"
|
; s/>*/>/g ; s/<*/</g ; s/"/\"/g ; s/'/'/g"
|
||||||
|
|
Loading…
Reference in a new issue