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()%>
<% } %>