client/posts: fix dup finder for swf and webm

fixes #110
This commit is contained in:
rr- 2017-01-08 20:57:08 +01:00
parent b366d8981c
commit 133ed522da

View file

@ -84,8 +84,7 @@ class PostUploadController {
_uploadSinglePost(uploadable, skipDuplicates) {
let reverseSearchPromise = Promise.resolve();
if (!uploadable.lookalikesConfirmed &&
['image'].includes(uploadable.type)) {
if (!uploadable.lookalikesConfirmed) {
reverseSearchPromise =
Post.reverseSearch(uploadable.url || uploadable.file);
}
@ -122,6 +121,9 @@ class PostUploadController {
});
this._lastCancellablePromise = savePromise;
return savePromise;
}).catch(error => {
error.uploadable = uploadable;
return Promise.reject(error);
});
}