mirror of
http://gitea.phreedom.club/localhost_frssoft/pleroma-cli
synced 2024-11-29 10:31:27 +00:00
Thread open func
This commit is contained in:
parent
d334ba8bb6
commit
394901ece9
|
@ -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; do
|
for file_func in favourite share reply threadopen; 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")
|
||||||
|
@ -839,6 +839,12 @@ if [ "$daemon_mode" = 'yes' ]; then
|
||||||
write_api_status $dir_status/message
|
write_api_status $dir_status/message
|
||||||
rm "$statuses_file_action"
|
rm "$statuses_file_action"
|
||||||
;;
|
;;
|
||||||
|
'threadopen')
|
||||||
|
export path_to_status_id="$status_id"
|
||||||
|
export instance
|
||||||
|
thread_api_statuses "$status_id" | ./utils/thread_statuses.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