fix: correctly check log blacklist for messages edited outside the target guild
This commit is contained in:
parent
7cc2aab1f0
commit
df9e7c3eb9
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user