aboutsummaryrefslogtreecommitdiff
path: root/src/main/assets
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2024-05-24 14:29:55 +0300
committerGravatar Vitaly Takmazov2024-05-24 14:29:55 +0300
commitdfa030a3765c5b5e43e263234155d344f5c6186e (patch)
tree53da933dddb3fffb9b7674d43a28190ed3cc79f7 /src/main/assets
parent65d5b915104fc79a3e8425466b6e2b88c1f35828 (diff)
Do not allow unverified users to comment messages
Diffstat (limited to 'src/main/assets')
-rw-r--r--src/main/assets/scripts.js2
1 files changed, 1 insertions, 1 deletions
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)
})