From 9170aab92e616a6f6d3ddfc4cf8326cba0e4a1a8 Mon Sep 17 00:00:00 2001 From: Satish Perala Date: Thu, 25 Aug 2016 22:35:59 +0530 Subject: Passing absolute image urls in the markdown content in the webhooks --- app/models/wiki_page.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/models/wiki_page.rb') diff --git a/app/models/wiki_page.rb b/app/models/wiki_page.rb index cde79b95062..5f8552212ad 100644 --- a/app/models/wiki_page.rb +++ b/app/models/wiki_page.rb @@ -59,7 +59,9 @@ class WikiPage attr_accessor :attributes def hook_attrs - attributes + attributes.merge({ + "content" => MarkdownUtils.absolute_image_urls(self.content) + }) end def initialize(wiki, page = nil, persisted = false) -- cgit v1.2.1