Skip to content
Snippets Groups Projects
Commit c3388065 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

use smaller unsplash image

parent b4a31a73
No related merge requests found
......@@ -15,7 +15,7 @@ module WithFeaturedImage
def add_unsplash_image(id)
return if id.blank?
photo = Unsplash::Photo.find id
url = photo['links']['download']
url = photo['urls']['full']
filename = "#{photo['id']}.jpg"
begin
file = URI.open url
......
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