From 0f49d4f0239a8dba3d2b69a42a43fd84780e88fa Mon Sep 17 00:00:00 2001 From: Mystikfluu Date: Sun, 3 Jul 2022 12:16:03 +0200 Subject: [PATCH] more filtering --- js/posts.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/posts.js b/js/posts.js index f75bb7d..bbffe76 100644 --- a/js/posts.js +++ b/js/posts.js @@ -112,7 +112,7 @@ async function createPost(username,text,time,specialtext,postid,isbot,reply_id) } newP.appendChild(spacerTextNode()) // |\>.Reply to this Post` + newP.innerHTML += `` if(reply_id != 0) { try { @@ -182,7 +182,7 @@ async function main(){ function reply(username,postid,posttext) { document.getElementById("reply").style = "" document.getElementById("reply_username").innerText = username - document.getElementById("reply_text").innerHTML = filterPost(unescape(posttext)) + document.getElementById("reply_text").innerHTML = filterPost(unescape(posttext.replace("\\\\","\\").replace("\\`","`"))) reply_id = postid }