diff --git a/lib/tasks/after_tasks.rake b/lib/tasks/after_tasks.rake index a6c248d838..ab25ca2a3f 100644 --- a/lib/tasks/after_tasks.rake +++ b/lib/tasks/after_tasks.rake @@ -359,7 +359,7 @@ namespace :After do ext = File.extname(image) image_original = "original#{ext}" - icon_url = if Rails.env.production + icon_url = if Rails.env.production? "https://s3.amazonaws.com/otw-ao3-icons/icons/#{pseud.id}/#{image_original}" else "https://s3.amazonaws.com/otw-ao3-icons/staging/icons/#{pseud.id}/#{image_original}"