aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/assets
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-03-28 22:28:33 +0300
committerGravatar Vitaly Takmazov2018-03-28 22:31:43 +0300
commitf6eb11a23ab645b187c5911ec762a3d6ca58140c (patch)
tree54f79790dc11a4e94487a5fce671f0514c092ccb /juick-www/src/main/assets
parenta41684e44da0021e2f8e653db28f1535e3941eb7 (diff)
move like API to server
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'
})