Skip to content
Snippets Groups Projects
Unverified Commit b29f89a7 authored by Arnaud Levy's avatar Arnaud Levy Committed by GitHub
Browse files

Fix #1777 Fix #1778 (#1779)

parent 4acdef5d
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ module Communication::Website::WithScreenshot
return if url.blank?
screenshot_url = Screenshot.capture(url)
return if screenshot_url.blank?
downloaded_image = URI.open(screenshot_url)
downloaded_image = URI(screenshot_url).open
self.screenshot.attach io: downloaded_image,
filename: "screenshot.png"
end
......
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