summaryrefslogtreecommitdiff
path: root/app/models/wiki_page.rb
diff options
context:
space:
mode:
authorSatish Perala <satish@cybrilla.com>2016-08-25 22:35:59 +0530
committerSean McGivern <sean@gitlab.com>2018-06-20 14:13:23 +0100
commit9170aab92e616a6f6d3ddfc4cf8326cba0e4a1a8 (patch)
treead2c13c7521fedb74f89693dd4561e92f92167db /app/models/wiki_page.rb
parentb349c01c6a71ac1f486b8ee86ce96ef48ac04ed8 (diff)
downloadgitlab-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.rb4
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)