Discord: fix PK sender identity context

This commit is contained in:
Shadow
2026-01-31 20:20:17 -06:00
parent 73c405f74a
commit abcca0f9bd
4 changed files with 52 additions and 43 deletions

View File

@@ -67,7 +67,7 @@ export async function preflightDiscordMessage(
}
const allowBots = params.discordConfig?.allowBots ?? false;
if (author.bot && params.botUserId && author.id === params.botUserId) {
if (params.botUserId && author.id === params.botUserId) {
// Always ignore own messages to prevent self-reply loops
return null;
}