From 9380bbba60b2adfd90f211f412204f4e59256e09 Mon Sep 17 00:00:00 2001 From: Kenneth Skovhede Date: Fri, 7 Aug 2020 13:41:32 +0200 Subject: [PATCH] Updated discourse automatic post creation to use the new API format --- build-release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-release.sh b/build-release.sh index 4ce995016..70a9809e9 100644 --- a/build-release.sh +++ b/build-release.sh @@ -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}"