diff options
author | Satish Perala <satish@cybrilla.com> | 2016-08-25 20:05:59 +0300 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2018-06-20 16:13:23 +0300 |
commit | 9170aab92e616a6f6d3ddfc4cf8326cba0e4a1a8 (patch) | |
tree | ad2c13c7521fedb74f89693dd4561e92f92167db /app/models/note.rb | |
parent | b349c01c6a71ac1f486b8ee86ce96ef48ac04ed8 (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.rb | 4 |
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? |