From 8d1592b717ac891bd5a367e88a24669e334ed66b Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Mon, 31 Dec 2018 21:05:14 +0000 Subject: [PATCH] Fill Discord member list with error if it has any before bailing --- webapp/titanembeds/static/js/embed.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webapp/titanembeds/static/js/embed.js b/webapp/titanembeds/static/js/embed.js index fb351c2..efea8d1 100644 --- a/webapp/titanembeds/static/js/embed.js +++ b/webapp/titanembeds/static/js/embed.js @@ -861,7 +861,9 @@ function fill_discord_members(discordmembers) { if (!discord_users_list_enabled) { - return; + if (discordmembers.length == 0 || discordmembers[0].id != 0) { + return; + } } discord_users_list = discordmembers; var template = $('#mustache_authedusers').html();