Thread open func

This commit is contained in:
localhost_frssoft 2022-08-07 18:31:39 +03:00
parent d334ba8bb6
commit 394901ece9

View file

@ -809,7 +809,7 @@ if [ "$daemon_mode" = 'yes' ]; then
statuses_auto_update &
while true; do
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)
if [ -n "$statuses_file_action" ]; then
dir_status=$(dirname "$statuses_file_action")
@ -839,6 +839,12 @@ if [ "$daemon_mode" = 'yes' ]; then
write_api_status $dir_status/message
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
fi
write_status_action=$(/bin/ls $main_basedir/all_statuses/$instance/create 2>/dev/null)