From 64340663186df961ca74ec531cfefd10283c6e55 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Mon, 25 May 2020 23:55:11 +0300 Subject: [PATCH] Simplify log header --- src/modules/webserver.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/modules/webserver.js b/src/modules/webserver.js index 4af5814..a1ad9ab 100644 --- a/src/modules/webserver.js +++ b/src/modules/webserver.js @@ -73,16 +73,7 @@ async function serveLogs(req, res, pathParts, query) { }); const openedAt = moment(thread.created_at).format('YYYY-MM-DD HH:mm:ss'); - let header = `# ModMail thread with ${thread.user_name} (${thread.user_id}) started at ${openedAt}.`; - header += `\n# All times are in UTC+0.`; - - if (! query.simple) { - header += `\n# Add ?simple=1 to the end of the log link to view only messages from the user and replies.`; - } - - if (! query.verbose) { - header += `\n# Add ?verbose=1 to the end of the log link to view message IDs.`; - } + const header = `# ModMail thread with ${thread.user_name} (${thread.user_id}) started at ${openedAt}. All times are in UTC+0.`; const fullResponse = header + '\n\n' + lines.join('\n');