summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-11-09 23:15:50 +0100
committerTor Andersson <tor@ccxvii.net>2021-11-09 23:15:50 +0100
commitac7792ab371f8ee17804539b564a4a13b539ab73 (patch)
tree9bd0ef38c32c72e7fedd61fef1af906c51a16247 /views
parent023c7e0c87ee0ff96b17cd4e4a3b0915d1c223d1 (diff)
downloadserver-ac7792ab371f8ee17804539b564a4a13b539ab73.tar.gz
Handle missing users.
Diffstat (limited to 'views')
-rw-r--r--views/user.ejs2
1 files changed, 2 insertions, 0 deletions
diff --git a/views/user.ejs b/views/user.ejs
index aa5d00f..9da706c 100644
--- a/views/user.ejs
+++ b/views/user.ejs
@@ -12,5 +12,7 @@
Member since <%= who.ctime %>.
<p>
Was last seen <%= who.atime %>.
+<% if (user) { %>
<p>
<a href="/message/send/<%- who.name %>">Send message</a>
+<% } %>