From 792c7802e1692847662834160b34113e35d35d8d Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 6 Apr 2022 18:24:28 +0200 Subject: Use role specific link in "Your Turn" emails. --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server.js') 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); -- cgit v1.2.3