mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-12 16:50:10 +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
|
// we're editing a message from a different server, get log channel info from the database
|
||||||
var guild = await _repo.GetGuild(proxiedMessage.Guild.Value);
|
var guild = await _repo.GetGuild(proxiedMessage.Guild.Value);
|
||||||
logChannelId = guild.LogChannel;
|
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;
|
if (ctx.SystemId == null || logChannelId == null || isBlacklisted) return null;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue