parent
b366d8981c
commit
133ed522da
1 changed files with 4 additions and 2 deletions
|
@ -84,8 +84,7 @@ class PostUploadController {
|
||||||
|
|
||||||
_uploadSinglePost(uploadable, skipDuplicates) {
|
_uploadSinglePost(uploadable, skipDuplicates) {
|
||||||
let reverseSearchPromise = Promise.resolve();
|
let reverseSearchPromise = Promise.resolve();
|
||||||
if (!uploadable.lookalikesConfirmed &&
|
if (!uploadable.lookalikesConfirmed) {
|
||||||
['image'].includes(uploadable.type)) {
|
|
||||||
reverseSearchPromise =
|
reverseSearchPromise =
|
||||||
Post.reverseSearch(uploadable.url || uploadable.file);
|
Post.reverseSearch(uploadable.url || uploadable.file);
|
||||||
}
|
}
|
||||||
|
@ -122,6 +121,9 @@ class PostUploadController {
|
||||||
});
|
});
|
||||||
this._lastCancellablePromise = savePromise;
|
this._lastCancellablePromise = savePromise;
|
||||||
return savePromise;
|
return savePromise;
|
||||||
|
}).catch(error => {
|
||||||
|
error.uploadable = uploadable;
|
||||||
|
return Promise.reject(error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue