Commit 12716a45 authored by Eugen Rochko's avatar Eugen Rochko

Handle Twitter links created before display_name was filled

parent 296fc517
- collection.each do |user|
.twitter= link_to "@#{user.twitter.display_name}", "{user.twitter.display_name}"
- if user.twitter.display_name.present?
= link_to "@#{user.twitter.display_name}", "{user.twitter.display_name}"
- else
= link_to user.twitter.uid, "{user.twitter.uid}"
.to= fa_icon('chevron-right')
- if user.mastodon
......@@ -12,7 +12,7 @@
- if twitter?
%strong= current_user.twitter.display_name
%strong= current_user.twitter.display_name.presence || current_user.twitter.uid
= fa_icon 'check'
- else
%span.login-btn Connect Twitter
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