mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
fix: correctly check log blacklist for messages edited outside the target guild
This commit is contained in:
parent
7cc2aab1f0
commit
df9e7c3eb9
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue