mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/posts: link to duplicates in upload form
This commit is contained in:
@ -140,6 +140,10 @@ class Post extends events.EventTarget {
|
||||
}
|
||||
return Promise.resolve();
|
||||
}, response => {
|
||||
if (response.name === 'PostAlreadyUploadedError') {
|
||||
return Promise.reject(
|
||||
`Post already uploaded (@${response.otherPostId})`);
|
||||
}
|
||||
return Promise.reject(response.description);
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user