From a7c6e9f04386c44e9ea6b7f7d2621831e673cc71 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Sat, 22 Nov 2014 17:49:35 +0100 Subject: [PATCH] Fixed putting "null" in post sources --- public_html/js/Presenters/PostUploadPresenter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/js/Presenters/PostUploadPresenter.js b/public_html/js/Presenters/PostUploadPresenter.js index 86756b0a..f738813a 100644 --- a/public_html/js/Presenters/PostUploadPresenter.js +++ b/public_html/js/Presenters/PostUploadPresenter.js @@ -581,7 +581,7 @@ App.Presenters.PostUploadPresenter = function( formData.append('content', post.file); formData.append('contentFileName', post.fileName); } - formData.append('source', post.source); + formData.append('source', post.source || ''); formData.append('safety', post.safety); formData.append('anonymous', (post.anonymous | 0)); formData.append('tags', post.tags.join(' '));