From f93b278c3759793fdc89fab506656155643f2ac4 Mon Sep 17 00:00:00 2001 From: Ashley Graves Date: Tue, 15 Oct 2024 15:15:56 +0200 Subject: [PATCH] guh --- src/server/index.js | 4 ++-- src/server/views/view.ejs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/server/index.js b/src/server/index.js index 138d006..6fa9703 100644 --- a/src/server/index.js +++ b/src/server/index.js @@ -30,11 +30,11 @@ app.get("/view/:paste", async function (req, res) { } var converter = new Converter(); - paste = converter.makeHtml(paste); + var text = converter.makeHtml(paste.data); res.render("view", { bot, - paste + text }); return; }); diff --git a/src/server/views/view.ejs b/src/server/views/view.ejs index 841efe1..b981109 100644 --- a/src/server/views/view.ejs +++ b/src/server/views/view.ejs @@ -12,7 +12,7 @@ Validate important information. - <% for(line of paste.data.split("\n")) { if(line.trim() == "") continue; %>

<%-line.trim()%>

<% } %> + <% for(line of text.split("\n")) { if(line.trim() == "") continue; %>

<%-line.trim()%>

<% } %>
<%- include("../partials/footer.ejs"); %>