GRN2-225, GRN2-227: Images sent by Office365 Institutional accounts break the rooms (#753)

* Validate profile image url

* Add rake task to migrate old office365 accounts
This commit is contained in:
shawn-higgins1
2019-08-21 14:23:00 -04:00
committed by Jesus Federico
parent 915ed9381d
commit 3d2a0a060b
3 changed files with 42 additions and 1 deletions

View File

@ -44,7 +44,7 @@
<div class="dropdown">
<a href="#" class="nav-link pr-0" data-toggle="dropdown">
<% if current_user.image.blank? %>
<% if current_user.image.blank? || !valid_url?(current_user.image) %>
<span class="avatar"><%= current_user.name.first %></span>
<% else %>
<span id="user-avatar" class="avatar d-none"><%= current_user.name.first %></span>