mirror of
http://gitea.phreedom.club/localhost_frssoft/pleroma-cli
synced 2024-11-22 08:11:28 +00:00
preload file deprecated; boost acct show
This commit is contained in:
parent
bf4e53e8ad
commit
0060e6282d
|
@ -326,6 +326,7 @@ statuses_render()
|
||||||
|
|
||||||
whoacct=$(echo $status | jj account.acct)
|
whoacct=$(echo $status | jj account.acct)
|
||||||
reblog=$(echo $status | jj reblog.id)
|
reblog=$(echo $status | jj reblog.id)
|
||||||
|
reblogacct=$(echo $status | jj reblog.account.acct)
|
||||||
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)
|
||||||
|
@ -337,7 +338,7 @@ statuses_render()
|
||||||
echo "| Reply to: $reply_to_id"
|
echo "| Reply to: $reply_to_id"
|
||||||
fi
|
fi
|
||||||
if [ -n "$reblog" ]; then
|
if [ -n "$reblog" ]; then
|
||||||
echo "| $boost_symbol $reblog"
|
echo "| $boost_symbol $reblog $reblogacct"
|
||||||
fi
|
fi
|
||||||
spoiler_text=$(echo "$status" | jj spoiler_text)
|
spoiler_text=$(echo "$status" | jj spoiler_text)
|
||||||
if [ -n "$spoiler_text" ]; then
|
if [ -n "$spoiler_text" ]; then
|
||||||
|
@ -426,7 +427,7 @@ thread_menu()
|
||||||
|
|
||||||
timeline_api()
|
timeline_api()
|
||||||
{
|
{
|
||||||
default_curl_opt "$instance_point/$timeline?limit=$max_statuses&max_id=$1&min_id=$2" | tee preload
|
default_curl_opt "$instance_point/$timeline?limit=$max_statuses&max_id=$1&min_id=$2"
|
||||||
}
|
}
|
||||||
|
|
||||||
timeline_menu()
|
timeline_menu()
|
||||||
|
@ -444,13 +445,13 @@ timeline_menu()
|
||||||
indexator=$(expr $max_statuses - 1)
|
indexator=$(expr $max_statuses - 1)
|
||||||
echo '#EXTM3U' > attachments.m3u8
|
echo '#EXTM3U' > attachments.m3u8
|
||||||
clear
|
clear
|
||||||
offset=$(jj -i preload $indexator.id)
|
offset=$(echo $json | jj $indexator.id)
|
||||||
json=$(timeline_api $offset)
|
json=$(timeline_api $offset)
|
||||||
;;
|
;;
|
||||||
"Next")
|
"Next")
|
||||||
echo '#EXTM3U' > attachments.m3u8
|
echo '#EXTM3U' > attachments.m3u8
|
||||||
clear
|
clear
|
||||||
offset=$(jj -i preload 0.id)
|
offset=$(echo $json | jj 0.id)
|
||||||
json=$(timeline_api '' $offset)
|
json=$(timeline_api '' $offset)
|
||||||
;;
|
;;
|
||||||
"Reply") reply_mode ;;
|
"Reply") reply_mode ;;
|
||||||
|
|
Loading…
Reference in a new issue