|
@ -145,8 +145,8 @@ namespace :mastodon do |
|
|
|
|
|
|
|
|
Account.unscoped.where(avatar_content_type: 'image/gif').or(Account.unscoped.where(header_content_type: 'image/gif')).find_each do |account| |
|
|
Account.unscoped.where(avatar_content_type: 'image/gif').or(Account.unscoped.where(header_content_type: 'image/gif')).find_each do |account| |
|
|
begin |
|
|
begin |
|
|
account.avatar.reprocess! |
|
|
|
|
|
account.header.reprocess! |
|
|
|
|
|
|
|
|
account.avatar.reprocess! if account.avatar_content_type == 'image/gif' && !account.avatar.exists?(:static) |
|
|
|
|
|
account.header.reprocess! if account.header_content_type == 'image/gif' && !account.header.exists?(:static) |
|
|
rescue StandardError => e |
|
|
rescue StandardError => e |
|
|
Rails.logger.error "Error while generating static avatars/headers for account #{account.id}: #{e}" |
|
|
Rails.logger.error "Error while generating static avatars/headers for account #{account.id}: #{e}" |
|
|
next |
|
|
next |
|
|