Its possible to close "Failed to share post" popup

Resolves #436
i was bored
This commit is contained in:
Ilya Prokopenko 2022-05-23 16:52:28 +03:00
parent 7800a53eb3
commit 453ce0e7d6
No known key found for this signature in database
GPG key ID: 7736BBBB05F14A56

View file

@ -171,7 +171,7 @@ function repostPost(id, hash) {
xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
xhr.onload = (function() {
if(xhr.responseText.indexOf("wall_owner") === -1)
MessageBox(tr('error'), tr('error_repost_fail'), tr('ok'), [Function.noop]);
MessageBox(tr('error'), tr('error_repost_fail'), [tr('ok')], [Function.noop]);
else {
let jsonR = JSON.parse(xhr.responseText);
NewNotification(tr('information_-1'), tr('shared_succ'), null, () => {window.location.href = "/wall" + jsonR.wall_owner});