diff options
author | Satish Perala <satish@cybrilla.com> | 2016-08-25 22:35:59 +0530 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2018-06-20 14:13:23 +0100 |
commit | 9170aab92e616a6f6d3ddfc4cf8326cba0e4a1a8 (patch) | |
tree | ad2c13c7521fedb74f89693dd4561e92f92167db /app/models/wiki_page.rb | |
parent | b349c01c6a71ac1f486b8ee86ce96ef48ac04ed8 (diff) | |
download | gitlab-ce-9170aab92e616a6f6d3ddfc4cf8326cba0e4a1a8.tar.gz |
Passing absolute image urls in the markdown content in the webhooks
Diffstat (limited to 'app/models/wiki_page.rb')
-rw-r--r-- | app/models/wiki_page.rb | 4 |
1 files changed, 3 insertions, 1 deletions
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) |