mirror of
https://github.com/andrewyng/openworker.git
synced 2026-09-04 16:42:35 +00:00
security: harden Slack approval handling
This commit is contained in:
@@ -243,7 +243,9 @@ class SlackAdapter(BasePlatformAdapter):
|
||||
chat_id=str(channel),
|
||||
message_id=ts,
|
||||
value=str(value),
|
||||
user_id=user.get("id"),
|
||||
user_name=user.get("username") or user.get("name"),
|
||||
response_url=body.get("response_url"),
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user