From 74ebb15dad102bfbaf863301c675ae5478976833 Mon Sep 17 00:00:00 2001 From: Ahmad Farhat Date: Mon, 21 Sep 2020 13:12:17 -0400 Subject: [PATCH] Fixed 500 when there is an invalid profile picture (#2109) --- app/views/rooms/cant_create_rooms.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/rooms/cant_create_rooms.html.erb b/app/views/rooms/cant_create_rooms.html.erb index 1979731e..cb661fa6 100644 --- a/app/views/rooms/cant_create_rooms.html.erb +++ b/app/views/rooms/cant_create_rooms.html.erb @@ -20,7 +20,7 @@
- <% if current_user.image.blank? %> + <% if current_user.image.blank? || !valid_url?(current_user.image) %> <%= current_user.name.first %> <% else %> <%= image_tag(current_user.image, class: "avatar avatar-xxxl card-profile-img") %>