Simplify log header
parent
5c247fc73d
commit
6434066318
|
@ -73,16 +73,7 @@ async function serveLogs(req, res, pathParts, query) {
|
||||||
});
|
});
|
||||||
|
|
||||||
const openedAt = moment(thread.created_at).format('YYYY-MM-DD HH:mm:ss');
|
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}.`;
|
const header = `# ModMail thread with ${thread.user_name} (${thread.user_id}) started at ${openedAt}. All times are in UTC+0.`;
|
||||||
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 fullResponse = header + '\n\n' + lines.join('\n');
|
const fullResponse = header + '\n\n' + lines.join('\n');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue