From 3d0ad729c13bbc660bf773c437bb97decb99ff1a Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Mon, 19 Mar 2018 19:08:47 +0000 Subject: [PATCH] Fix avatar url not rendering properly for mention --- webapp/titanembeds/static/js/embed.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webapp/titanembeds/static/js/embed.js b/webapp/titanembeds/static/js/embed.js index e779d82..ab80af2 100644 --- a/webapp/titanembeds/static/js/embed.js +++ b/webapp/titanembeds/static/js/embed.js @@ -1720,7 +1720,7 @@ all_users.push({ "id": usr.id, "avatar": usr.avatar, - "avatar_url": generate_avatar_url(usr.user_id, usr.avatar), + "avatar_url": generate_avatar_url(usr.id, usr.avatar), "username": usr.username, "nickname": usr.nickname, "discriminator": usr.discriminator @@ -1737,7 +1737,7 @@ if (usr.id == all_users[i].id) { var u = all_users[i]; u.avatar = usr.avatar; - u.avatar_url = generate_avatar_url(usr.user_id, usr.avatar); + u.avatar_url = generate_avatar_url(usr.id, usr.avatar); u.username = usr.username; u.nickname = usr.nickname; u.discriminator = usr.discriminator; @@ -1761,7 +1761,7 @@ all_users.push({ "id": usr.id, "avatar": usr.avatar, - "avatar_url": generate_avatar_url(usr.user_id, usr.avatar), + "avatar_url": generate_avatar_url(usr.id, usr.avatar), "username": usr.username, "nickname": usr.nickname, "discriminator": usr.discriminator