fix: correctly check log blacklist for messages edited outside the target guild

This commit is contained in:
spiral 2022-01-14 15:11:42 -05:00
parent 7cc2aab1f0
commit df9e7c3eb9
No known key found for this signature in database
GPG Key ID: A6059F0CA0E1BD31

View File

@ -71,7 +71,7 @@ public class LogChannelService
// we're editing a message from a different server, get log channel info from the database
var guild = await _repo.GetGuild(proxiedMessage.Guild.Value);
logChannelId = guild.LogChannel;
isBlacklisted = guild.Blacklist.Any(x => x == logChannelId);
isBlacklisted = guild.LogBlacklist.Any(x => x == trigger.ChannelId);
}
if (ctx.SystemId == null || logChannelId == null || isBlacklisted) return null;