From 3d81cab301c523f48bf790f0f94bf53e971a7dd1 Mon Sep 17 00:00:00 2001 From: Mystikfluu Date: Thu, 23 Jun 2022 21:55:08 +0200 Subject: [PATCH] add reconstructing the original message in reply --- js/posts.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/posts.js b/js/posts.js index c4e4d72..4e35308 100644 --- a/js/posts.js +++ b/js/posts.js @@ -105,7 +105,7 @@ async function createPost(username,text,time,specialtext,postid,isbot) { } newP.appendChild(spacerTextNode()) // |\>.Reply to this Post` + newP.innerHTML += `` newDiv.appendChild(newP) newDiv.innerHTML += filterPost(text) @@ -166,7 +166,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(posttext) + document.getElementById("reply_text").innerHTML = filterPost(unescape(posttext)) // if(document.getElementById("post-text").value.length >= 5)document.getElementById("post-text").value += "\n" // document.getElementById("post-text").value += `_@_${username} ` }