aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/assets
diff options
context:
space:
mode:
Diffstat (limited to 'juick-www/src/main/assets')
-rw-r--r--juick-www/src/main/assets/scripts.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/juick-www/src/main/assets/scripts.js b/juick-www/src/main/assets/scripts.js
index 9da9ce3c..57ab9ee4 100644
--- a/juick-www/src/main/assets/scripts.js
+++ b/juick-www/src/main/assets/scripts.js
@@ -519,7 +519,8 @@ function resultMessage(str) {
function likeMessage(e, mid) {
if (confirm(i18n('message.likeThisMessage?'))) {
- fetch('//juick.com/like?mid=' + mid, {
+ fetch('//api.juick.com/like?mid=' + mid
+ + '&hash=' + document.getElementById('body').getAttribute('data-hash'), {
method: 'POST',
credentials: 'same-origin'
})