From 5f4260d0a7672ceaf7d517d44e3123058fa4172a Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Fri, 20 Mar 2015 13:35:10 +0100 Subject: [PATCH] Fixed uploading posts from URLs --- public_html/js/Presenters/PostUploadPresenter.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public_html/js/Presenters/PostUploadPresenter.js b/public_html/js/Presenters/PostUploadPresenter.js index b783599c..f6c09257 100644 --- a/public_html/js/Presenters/PostUploadPresenter.js +++ b/public_html/js/Presenters/PostUploadPresenter.js @@ -342,9 +342,9 @@ App.Presenters.PostUploadPresenter = function( } $el.find('.form-slider .thumbnail a').attr( 'href', - post.file !== null ? - URL.createObjectURL(post.file) - : thumbnailDataURL); + post.url !== null ? + thumbnailDataURL : + URL.createObjectURL(post.file)); }); }