]> cat aescling's git repositories - mastodon.git/commitdiff
Don't show business e-mail if it's blank (#3619)
authorSTJrInuyasha <MattWCSTRFAN@gmail.com>
Wed, 7 Jun 2017 07:57:47 +0000 (00:57 -0700)
committerEugen Rochko <eugen@zeonfederated.com>
Wed, 7 Jun 2017 07:57:47 +0000 (09:57 +0200)
app/views/about/_contact.html.haml

index 39e4e98ec176dafdd4004d4a5698389e5688849e..292a58575aed35c4ebad7ce6af96dbae4d71755b 100644 (file)
@@ -9,7 +9,7 @@
             %span.display_name.emojify= display_name(contact.contact_account)
             %span.username @#{contact.contact_account.acct}
 
-    - if contact.site_contact_email
+    - unless contact.site_contact_email.blank?
       .contact-email
         = t 'about.business_email'
         %strong= contact.site_contact_email