enhanced reply style
This commit is contained in:
+10
-5
@@ -125,11 +125,16 @@ async function createPost(username,text,time,specialtext,postid,isbot,reply_id)
|
|||||||
replyAvatar.classList.add("avatar")
|
replyAvatar.classList.add("avatar")
|
||||||
replyAvatar.src = await getavatar(reply_username)
|
replyAvatar.src = await getavatar(reply_username)
|
||||||
|
|
||||||
replyDiv.appendChild(replyAvatar)
|
replyA.href = "#"+reply_id
|
||||||
replyDiv.appendChild(reply_username_text)
|
|
||||||
replyDiv.appendChild(spacerTextNode())
|
replyA.appendChild(replyAvatar)
|
||||||
replyDiv.innerHTML += filterPost(reply_text)
|
replyA.appendChild(reply_username_text)
|
||||||
replyDiv.appendChild(replyBr)
|
replyA.appendChild(spacerTextNode())
|
||||||
|
replyA.innerHTML += filterPost(reply_text.replace("\n"," ").substring(0,20))
|
||||||
|
replyA.appendChild(replyBr)
|
||||||
|
|
||||||
|
replyDiv.appendChild(replyA)
|
||||||
|
|
||||||
newDiv.appendChild(replyDiv)
|
newDiv.appendChild(replyDiv)
|
||||||
} catch (ignored) {}
|
} catch (ignored) {}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user