summaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-04-06 18:24:28 +0200
committerTor Andersson <tor@ccxvii.net>2022-04-15 14:34:17 +0200
commit792c7802e1692847662834160b34113e35d35d8d (patch)
tree455f12c527913bb6692bf6681f13c18ffe709ced /server.js
parent2f320ed21eba25fac0da4570949ce222f1410447 (diff)
downloadserver-792c7802e1692847662834160b34113e35d35d8d.tar.gz
Use role specific link in "Your Turn" emails.
Diffstat (limited to 'server.js')
-rw-r--r--server.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.js b/server.js
index 5d97417..4354d52 100644
--- a/server.js
+++ b/server.js
@@ -1475,7 +1475,7 @@ function mail_your_turn_notification(user, game_id, interval) {
let subject = game.title_name + " - " + game_id + " - Your turn!";
let body = mail_describe(game) +
"It's your turn.\n\n" +
- SITE_URL + "/play/" + game_id + "\n\n--\n" +
+ SITE_URL + "/play/" + game_id + "/" + encodeURI(user.role) + "\n\n--\n" +
MAIL_FOOTER;
console.log("SENT MAIL:", mail_addr(user), subject);
mailer.sendMail({ from: MAIL_FROM, to: mail_addr(user), subject: subject, text: body }, mail_callback);