Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSatish Perala <satish@cybrilla.com>2016-08-25 20:05:59 +0300
committerSean McGivern <sean@gitlab.com>2018-06-20 16:13:23 +0300
commit9170aab92e616a6f6d3ddfc4cf8326cba0e4a1a8 (patch)
treead2c13c7521fedb74f89693dd4561e92f92167db /app/models/note.rb
parentb349c01c6a71ac1f486b8ee86ce96ef48ac04ed8 (diff)
Passing absolute image urls in the markdown content in the webhooks
Diffstat (limited to 'app/models/note.rb')
-rw-r--r--app/models/note.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/note.rb b/app/models/note.rb
index 41c04ae0571..3893fe25fb7 100644
--- a/app/models/note.rb
+++ b/app/models/note.rb
@@ -202,7 +202,9 @@ class Note < ActiveRecord::Base
end
def hook_attrs
- attributes
+ attributes.merge({
+ "note" => MarkdownUtils.absolute_image_urls(self.note)
+ })
end
def for_commit?