summaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
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);