User specific motd changes (again)

This commit is contained in:
mrfry 2021-01-14 16:37:50 +01:00
parent 175f0235d0
commit 09a04c4ae7
2 changed files with 6 additions and 4 deletions

View file

@ -1276,9 +1276,11 @@ function GetApp(): ModuleType {
} }
if (req.query.motd) { if (req.query.motd) {
result.motd = motd result.motd = motd
result.userSpecificMotd = { if (userSpecificMotd[user.id]) {
msg: userSpecificMotd[user.id].msg, result.userSpecificMotd = {
seen: userSpecificMotd[user.id].seen, msg: userSpecificMotd[user.id].msg,
seen: userSpecificMotd[user.id].seen,
}
} }
} }
res.json(result) res.json(result)

@ -1 +1 @@
Subproject commit 23dc6197ad6913cf3e3f0a950fabf05c943cfffa Subproject commit 179c1f00792ec78af9820ac185cf8075b865a4d8