Fixed uploading posts from URLs

This commit is contained in:
Marcin Kurczewski 2015-03-20 13:35:10 +01:00
parent e7e50cfb3a
commit 5f4260d0a7

View file

@ -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));
});
}