more filtering
This commit is contained in:
parent
c55bf8fb8c
commit
0f49d4f023
@ -112,7 +112,7 @@ async function createPost(username,text,time,specialtext,postid,isbot,reply_id)
|
|||||||
}
|
}
|
||||||
newP.appendChild(spacerTextNode())
|
newP.appendChild(spacerTextNode())
|
||||||
// |\>.</|
|
// |\>.</|
|
||||||
newP.innerHTML += `<button onclick="reply('${username}',${postid},\`${htmlesc(htmlesc(text))}\`)">Reply to this Post</button>`
|
newP.innerHTML += `<button onclick="reply('${username}',${postid},\`${htmlesc(htmlesc(text)).replace("\\","\\\\").replace("`","\\`")}\`)">Reply to this Post</button>`
|
||||||
|
|
||||||
if(reply_id != 0) {
|
if(reply_id != 0) {
|
||||||
try {
|
try {
|
||||||
@ -182,7 +182,7 @@ async function main(){
|
|||||||
function reply(username,postid,posttext) {
|
function reply(username,postid,posttext) {
|
||||||
document.getElementById("reply").style = ""
|
document.getElementById("reply").style = ""
|
||||||
document.getElementById("reply_username").innerText = username
|
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
|
reply_id = postid
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user