Updated discourse automatic post creation to use the new API format

This commit is contained in:
Kenneth Skovhede
2020-08-07 13:41:32 +02:00
parent 25c1a5b657
commit 9380bbba60
+2 -2
View File
@@ -392,8 +392,8 @@ ${RELEASE_CHANGEINFO_NEWS}
curl -X POST "https://forum.duplicati.com/posts" \
-H "Content-Type: multipart/form-data" \
-H "Accept: application/json" \
-F "api_key=${DISCOURSE_APIKEY}" \
-F "api_username=${DISCOURSE_USERNAME}" \
-H "Api-Key: ${DISCOURSE_APIKEY}" \
-H "Api-Username: ${DISCOURSE_USERNAME}" \
-F "category=10" \
-F "title=Release: ${RELEASE_VERSION} (${RELEASE_TYPE}) ${RELEASE_TIMESTAMP}" \
-F "raw=${body}"