From ccc64e6b909cc6a4868aa7b1fe9b12eb67347a47 Mon Sep 17 00:00:00 2001 From: Innokentii Konstantinov Date: Tue, 28 Nov 2023 13:22:18 +0800 Subject: [PATCH] Fix --- engine/apps/slack/views.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/engine/apps/slack/views.py b/engine/apps/slack/views.py index ecca6222..67464e88 100644 --- a/engine/apps/slack/views.py +++ b/engine/apps/slack/views.py @@ -220,11 +220,9 @@ class SlackEventApiEndpointView(APIView): "ts":"1701082318.471149", "app_id":"ASUTJU5U4", ...} - So check bot_id even if payload has a user + So check bot_id even if payload has a user to not to react on own bot messages. """ - # Don't react on own bot's messages. - if payload_event_bot_id == slack_team_identity.bot_id: - return Response(status=200) + return Response(status=200) if "id" in payload_event_user: slack_user_id = payload_event_user["id"]