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( $el.find('.form-slider .thumbnail a').attr(
'href', 'href',
post.file !== null ? post.url !== null ?
URL.createObjectURL(post.file) thumbnailDataURL :
: thumbnailDataURL); URL.createObjectURL(post.file));
}); });
} }