mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
outgoing webhook system: Minor fixes.
This fixes some error message strings and skips converting request_data into json. From now, conversion would be the responsibility of interface. Also, base_url is now not passed into event structure.
This commit is contained in:
@@ -466,7 +466,6 @@ class OutgoingWebhookWorker(QueueProcessingWorker):
|
||||
services = get_bot_services(event['user_profile_id'])
|
||||
for service in services:
|
||||
dup_event['service_name'] = str(service.name)
|
||||
dup_event['base_url'] = str(service.base_url)
|
||||
service_handler = get_outgoing_webhook_service_handler(service)
|
||||
rest_operation, request_data = service_handler.process_event(dup_event)
|
||||
do_rest_call(rest_operation, request_data, dup_event, service_handler)
|
||||
|
||||
Reference in New Issue
Block a user