]> cat aescling's git repositories - mastodon.git/commitdiff
Test for presence of Application in haml before trying to render details, to fix...
authorEffy Elden <git@effy.is>
Sat, 14 Jan 2017 22:10:44 +0000 (09:10 +1100)
committerEffy Elden <git@effy.is>
Sat, 14 Jan 2017 22:10:44 +0000 (09:10 +1100)
app/views/stream_entries/_detailed_status.html.haml

index bc99409150313e766e772489a5253d9105e92977..a89503cff009c44fb60fe30d443caf9c81a978d0 100644 (file)
     = link_to TagManager.instance.url_for(status), class: 'detailed-status__datetime u-url u-uid', target: @external_links ? '_blank' : nil, rel: 'noopener' do
       %span= l(status.created_at)
     ·
-    = link_to status.application.website, class: 'detailed-status__application', target: @external_links ? '_blank' : nil, rel: 'noooper' do
-      %span= status.application.name
-    ·
+    - if status.application
+      = link_to status.application.website, class: 'detailed-status__application', target: @external_links ? '_blank' : nil, rel: 'noooper' do
+        %span= status.application.name
+      ·
     %span
       = fa_icon('retweet')
       %span= status.reblogs.count