mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
User specific motd changes (again)
This commit is contained in:
parent
175f0235d0
commit
09a04c4ae7
2 changed files with 6 additions and 4 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue