Unverified Commit 6dcf125b authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub

Do not try to load nil image

parent ed17ca76
......@@ -20,7 +20,8 @@
.grid
- @friends.each do |user|
= link_to user.mastodon.info['url'] || user.mastodon.profile_url, class: 'user-card' do
.avatar= image_tag user.mastodon.info['avatar']
.avatar
= image_tag user.mastodon.info['avatar'] unless user.mastodon.info['avatar'].blank?
.name
%span.display-name= user.mastodon.info['display_name'].presence || user.mastodon.info['username'] || user.mastodon.display_name
%span.username= "@#{user.mastodon.uid}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment