add User avatar info to getPost

This commit is contained in:
Mystikfluu
2022-08-28 15:57:30 +02:00
parent 692af27078
commit 64d7e641ba
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -206,7 +206,7 @@ async function createPost(username,text,time,specialtext,postid,isbot,reply_id,a
replyAvatar.width=10;
replyAvatar.height=10;
replyAvatar.classList.add("avatar")
replyAvatar.src = await getavatar(reply_username)
replyAvatar.src = reply_obj.User_Avatar || await getavatar(reply_username)
replyA.appendChild(replyAvatar)
replyA.appendChild(reply_username_text)