This commit is contained in:
Innokentii Konstantinov 2023-11-28 13:16:55 +08:00
parent 22cfba0163
commit 8f17784c49

View file

@ -223,7 +223,8 @@ class SlackEventApiEndpointView(APIView):
So check bot_id even if payload has a user
"""
# Don't react on own bot's messages.
return Response(status=200)
if payload_event_bot_id == slack_team_identity.bot_id:
return Response(status=200)
if "id" in payload_event_user:
slack_user_id = payload_event_user["id"]