mirror of
http://gitea.phreedom.club/localhost_frssoft/pleroma-cli
synced 2025-01-12 05:29: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 &
|
statuses_auto_update &
|
||||||
while true; do
|
while true; do
|
||||||
sleep 5
|
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)
|
statuses_file_action=$(/bin/ls $main_basedir/all_statuses/$instance/*/$file_func 2>/dev/null)
|
||||||
if [ -n "$statuses_file_action" ]; then
|
if [ -n "$statuses_file_action" ]; then
|
||||||
dir_status=$(dirname "$statuses_file_action")
|
dir_status=$(dirname "$statuses_file_action")
|
||||||
|
@ -845,6 +845,12 @@ if [ "$daemon_mode" = 'yes' ]; then
|
||||||
thread_api_statuses "$status_id" | ./utils/thread_statuses.sh
|
thread_api_statuses "$status_id" | ./utils/thread_statuses.sh
|
||||||
rm "$statuses_file_action"
|
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
|
esac
|
||||||
fi
|
fi
|
||||||
write_status_action=$(/bin/ls $main_basedir/all_statuses/$instance/create 2>/dev/null)
|
write_status_action=$(/bin/ls $main_basedir/all_statuses/$instance/create 2>/dev/null)
|
||||||
|
|
Loading…
Reference in a new issue