diff --git a/app/concerns/couriers/legacy.rb b/app/concerns/couriers/legacy.rb index 4a84dce..acca3b7 100644 --- a/app/concerns/couriers/legacy.rb +++ b/app/concerns/couriers/legacy.rb @@ -16,12 +16,14 @@ def execute id end def perform id + p = Photo.fields(:description, :filename, :title).find id + Net::HTTP.post_form( URI.parse(destination), { 'key' => key, - 'filename' => Photo.find(id).key, - 'description' => Photo.find(id).description, - 'title' => Photo.find(id).title } + 'filename' => p.key, + 'description' => p.description, + 'title' => p.title } ) end end