From 0d0dab23fb0ecf16a2abf54295746d7dbd87c2d7 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 10 Nov 2021 22:27:46 +0100 Subject: Massive SQL cleanup. --- views/message_read.ejs | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) (limited to 'views/message_read.ejs') diff --git a/views/message_read.ejs b/views/message_read.ejs index 28762cf..7b32eda 100644 --- a/views/message_read.ejs +++ b/views/message_read.ejs @@ -1,10 +1,4 @@ -<%- include('header', { title: mail.subject }) %> - +<%- include('header', { title: message.subject }) %> - - +
From: <%= mail.from_name %> -
To: <%= mail.to_name %> -
Date: <%= mail.time %> -
<%= mail.body %>
+
From: <%= message.from_name %> +
To: <%= message.to_name %> +
Date: <%= message.time %> +
<%- message.body %>

-<% if ( mail.from_id !== user.user_id ) { %> - +<% if ( 1 || message.from_id !== user.user_id ) { %> + <% } %> - + -- cgit v1.2.3