projects
/
vchess.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b99d98
)
Fix links in newmove + game notification emails
author
Benjamin Auder
<benjamin.auder@somewhere>
Mon, 17 Feb 2020 07:09:07 +0000
(08:09 +0100)
committer
Benjamin Auder
<benjamin.auder@somewhere>
Mon, 17 Feb 2020 07:09:07 +0000
(08:09 +0100)
server/routes/games.js
patch
|
blob
|
blame
|
history
diff --git
a/server/routes/games.js
b/server/routes/games.js
index
3e2122d
..
f130f78
100644
(file)
--- a/
server/routes/games.js
+++ b/
server/routes/games.js
@@
-32,7
+32,7
@@
router.post("/games", access.logged, access.ajax, (req,res) => {
const oppIdx = (gameInfo.players[0].id == req.userId ? 1 : 0);
const oppId = gameInfo.players[oppIdx].id;
UserModel.tryNotify(oppId,
- "Game started: " + params.siteURL + "/game/" + ret.gid);
+ "Game started: " + params.siteURL + "/
#/
game/" + ret.gid);
res.json({gameId: ret.gid});
});
}
@@
-91,7
+91,7
@@
router.put("/games", access.logged, access.ajax, (req,res) => {
? "New move in game: "
: "Game ended: ");
UserModel.tryNotify(oppid,
- messagePrefix + params.siteURL + "/game/" + gid);
+ messagePrefix + params.siteURL + "/
#/
game/" + gid);
}
});
}