remove old reply highlighting
This commit is contained in:
parent
acad8694c6
commit
59f40b2983
@ -36,7 +36,7 @@ function filterPost(text) {
|
|||||||
text = htmlesc(text)
|
text = htmlesc(text)
|
||||||
text = newlineify(text)
|
text = newlineify(text)
|
||||||
text = urlify(text)
|
text = urlify(text)
|
||||||
text = filterReplies(text)
|
//text = filterReplies(text)
|
||||||
text = filterMentions(text)
|
text = filterMentions(text)
|
||||||
text = crossout(text)
|
text = crossout(text)
|
||||||
text = boldify(text)
|
text = boldify(text)
|
||||||
|
@ -115,7 +115,7 @@ async function createPost(username,text,time,specialtext,postid,isbot,reply_id)
|
|||||||
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))}\`)">Reply to this Post</button>`
|
||||||
|
|
||||||
if(reply_id != 0) {
|
if(reply_id != 0) {
|
||||||
const reply_obj = await fetch(`/getPost?id=${reply_id}`)
|
const reply_obj = await fetch(`/api/getPost?id=${reply_id}`)
|
||||||
const reply_username = decodeURIComponent(reply_obj.post_user_name)
|
const reply_username = decodeURIComponent(reply_obj.post_user_name)
|
||||||
const reply_username_text = document.createTextNode(reply_username)
|
const reply_username_text = document.createTextNode(reply_username)
|
||||||
const reply_text = decodeURIComponent(reply_obj.post_text)
|
const reply_text = decodeURIComponent(reply_obj.post_text)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user