refactor: убрана защита от loop (Tracker фильтрует own messages)
This commit is contained in:
parent
c151a69de5
commit
195c2eb691
@ -61,12 +61,6 @@ export class EventRouter {
|
|||||||
const chatId = data.chat_id as string | undefined;
|
const chatId = data.chat_id as string | undefined;
|
||||||
const taskKey = data.task_key as string | undefined;
|
const taskKey = data.task_key as string | undefined;
|
||||||
|
|
||||||
// Don't respond to own messages (safety net — Tracker already filters)
|
|
||||||
if (authorSlug === this.config.slug) {
|
|
||||||
this.log.debug('Ignoring own message');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!content) {
|
if (!content) {
|
||||||
this.log.warn({ data }, 'message.new event missing content');
|
this.log.warn({ data }, 'message.new event missing content');
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user