Skip to content
Snippets Groups Projects
Unverified Commit 785cdac7 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

better use domain_url

parent 722962f1
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ module Communication::Website::Imported::WithRichText ...@@ -5,7 +5,7 @@ module Communication::Website::Imported::WithRichText
def rich_text_with_attachments(text) def rich_text_with_attachments(text)
fragment = Nokogiri::HTML.fragment(text) fragment = Nokogiri::HTML.fragment(text)
images = fragment.css("img[src*=\"#{website.website.domain}\"]") images = fragment.css("img[src*=\"#{website.website.domain_url}\"]")
images.each do |image| images.each do |image|
begin begin
url = image.attr('src') url = image.attr('src')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment