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,11 +1276,13 @@ function GetApp(): ModuleType {
} }
if (req.query.motd) { if (req.query.motd) {
result.motd = motd result.motd = motd
if (userSpecificMotd[user.id]) {
result.userSpecificMotd = { result.userSpecificMotd = {
msg: userSpecificMotd[user.id].msg, msg: userSpecificMotd[user.id].msg,
seen: userSpecificMotd[user.id].seen, seen: userSpecificMotd[user.id].seen,
} }
} }
}
res.json(result) res.json(result)
}) })

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