mirror of
http://gitea.phreedom.club/localhost_frssoft/pleroma-cli
synced 2025-01-12 02:19:31 +00:00
Prev listing statuses
This commit is contained in:
parent
394901ece9
commit
a5e6ceb077
|
@ -809,7 +809,7 @@ if [ "$daemon_mode" = 'yes' ]; then
|
|||
statuses_auto_update &
|
||||
while true; do
|
||||
sleep 5
|
||||
for file_func in favourite share reply threadopen; do
|
||||
for file_func in favourite share reply threadopen prev; do
|
||||
statuses_file_action=$(/bin/ls $main_basedir/all_statuses/$instance/*/$file_func 2>/dev/null)
|
||||
if [ -n "$statuses_file_action" ]; then
|
||||
dir_status=$(dirname "$statuses_file_action")
|
||||
|
@ -845,6 +845,12 @@ if [ "$daemon_mode" = 'yes' ]; then
|
|||
thread_api_statuses "$status_id" | ./utils/thread_statuses.sh
|
||||
rm "$statuses_file_action"
|
||||
;;
|
||||
'prev')
|
||||
timeline="$(cat "$statuses_file_action" | tr -d '\n')"
|
||||
export instance timeline
|
||||
timeline_api "$status_id" | ./utils/statuses2files.sh
|
||||
rm "$statuses_file_action"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
write_status_action=$(/bin/ls $main_basedir/all_statuses/$instance/create 2>/dev/null)
|
||||
|
|
Loading…
Reference in a new issue