From dd58c006990f99c81beace2dac3a8f9a3e3d29a0 Mon Sep 17 00:00:00 2001 From: Erick Guan Date: Fri, 4 Nov 2016 15:18:18 +0100 Subject: [PATCH] FEATURE: Add instance id in the webhook payload --- app/jobs/regular/emit_web_hook_event.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/jobs/regular/emit_web_hook_event.rb b/app/jobs/regular/emit_web_hook_event.rb index 87e273376f..72e5f5923a 100644 --- a/app/jobs/regular/emit_web_hook_event.rb +++ b/app/jobs/regular/emit_web_hook_event.rb @@ -46,6 +46,7 @@ module Jobs 'Content-Type' => content_type, 'Host' => uri.host, 'User-Agent' => "Discourse/" + Discourse::VERSION::STRING, + 'X-Discourse-Instance' => Discourse.base_url, 'X-Discourse-Event-Id' => web_hook_event.id, 'X-Discourse-Event-Type' => @opts[:event_type] }