From d50f4fdd7a1e6956485a3aa4e288bffa28857695 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Mon, 12 Nov 2018 16:07:33 +0800 Subject: [PATCH] Oops. --- app/assets/javascripts/discourse/mixins/upload.js.es6 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/mixins/upload.js.es6 b/app/assets/javascripts/discourse/mixins/upload.js.es6 index 5937135b31a..eac1fcff186 100644 --- a/app/assets/javascripts/discourse/mixins/upload.js.es6 +++ b/app/assets/javascripts/discourse/mixins/upload.js.es6 @@ -18,7 +18,8 @@ export default Em.Mixin.create({ calculateUploadUrl() { return ( - +".json?client_id=" + + getUrl(this.getWithDefault("uploadUrl", "/uploads")) + + ".json?client_id=" + (this.messageBus && this.messageBus.clientId) + "&authenticity_token=" + encodeURIComponent(Discourse.Session.currentProp("csrfToken"))