Fix
This commit is contained in:
parent
22cfba0163
commit
8f17784c49
1 changed files with 2 additions and 1 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue