diff --git a/app/models/user.rb b/app/models/user.rb index 525e3dcf355..d2844688a84 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -603,10 +603,8 @@ def avatar_url else image_url default_image_path end - rescue ActiveStorage::FileNotFoundError, ActiveStorage::InvariableError + rescue ActiveStorage::FileNotFoundError, ActiveStorage::InvariableError, Vips::Error image_url default_image_path - rescue Vips::Error - avatar.variant(resize_to_fit: [120, 120]).processed.url end def generation