diff --git a/pleroma-cli.sh b/pleroma-cli.sh index 517c988..72cbf0a 100755 --- a/pleroma-cli.sh +++ b/pleroma-cli.sh @@ -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)