diff --git a/lib/inaturalist/observation.rb b/lib/inaturalist/observation.rb index 72dcb9e4d..6e47dafcb 100644 --- a/lib/inaturalist/observation.rb +++ b/lib/inaturalist/observation.rb @@ -39,7 +39,7 @@ def locations def extract_locations(obs) locations = [] obs['photos'].each do |p| - url = p['url'].sub('square', 'original') + url = p['url'].sub('square', 'large') mimetype = mime_type_from_file_extension(url) locations << { mimetype => url } end diff --git a/spec/lib/inaturalist/observation_spec.rb b/spec/lib/inaturalist/observation_spec.rb index e9740cd9d..80e311012 100644 --- a/spec/lib/inaturalist/observation_spec.rb +++ b/spec/lib/inaturalist/observation_spec.rb @@ -22,8 +22,8 @@ } let(:obs_locations) { [ - { 'image/jpeg' => 'https://static.inaturalist.org/photos/12345/original.JPG' }, - { 'image/jpeg' => 'https://static.inaturalist.org/photos/45678/original.JPG' } + { 'image/jpeg' => 'https://static.inaturalist.org/photos/12345/large.JPG' }, + { 'image/jpeg' => 'https://static.inaturalist.org/photos/45678/large.JPG' } ] }