From dfa030a3765c5b5e43e263234155d344f5c6186e Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 24 May 2024 14:29:55 +0300 Subject: Do not allow unverified users to comment messages --- src/main/assets/scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/assets/scripts.js') diff --git a/src/main/assets/scripts.js b/src/main/assets/scripts.js index 3c83bba4..38406c2a 100644 --- a/src/main/assets/scripts.js +++ b/src/main/assets/scripts.js @@ -315,10 +315,10 @@ function showCommentForm(mid, rid) { .then(result => { if (result.newMessage) { window.location.hash = `#${result.newMessage.rid}` + window.location.reload() } else { alert(result.text) } - window.location.reload() }).catch(error => { alert(error.message) }) -- cgit v1.2.3