mirror of
https://github.com/unraid/webgui.git
synced 2026-04-27 05:19:44 -05:00
webGui: use JSON for Slack notifications since it's preferred and may work better for 3rd party webhooks (e.g. Discord)
This commit is contained in:
@@ -205,7 +205,8 @@
|
||||
############
|
||||
TITLE=$(echo -e "$TITLE")
|
||||
MESSAGE=$(echo -e "$MESSAGE")
|
||||
curl -X POST -d "payload={\"username\": \"$APP_NAME\", \"text\": \"*$TITLE* \n $MESSAGE\"}" $WEBH_URL 2>&1
|
||||
curl -X POST --header 'Content-Type: application/json' \
|
||||
-d "{\"username\": \"$APP_NAME\", \"text\": \"*$TITLE* \n $MESSAGE\"}" $WEBH_URL 2>&1
|
||||
]]>
|
||||
</Script>
|
||||
</Agent>
|
||||
|
||||
Reference in New Issue
Block a user