about summary refs log tree commit diff
path: root/app/views/stream_entries
diff options
context:
space:
mode:
authorKY <tkbky@users.noreply.github.com>2017-10-16 20:10:12 +0800
committerEugen Rochko <eugen@zeonfederated.com>2017-10-16 14:10:12 +0200
commitf72936b4e696049a9829fc84b0ec5a84e4ecf7bb (patch)
treec9e377991253f077a99623c2985e291249bca1a8 /app/views/stream_entries
parent3c530d95f66c3408b438aba924e943e4af35f92e (diff)
Fix #5082 - disable retweet link for followers only toot (#5397)
* Fix #5082 - disable retweet link for followers only toot

* Hide reblog count when it is a direct message
Diffstat (limited to 'app/views/stream_entries')
-rw-r--r--app/views/stream_entries/_detailed_status.html.haml13
1 files changed, 10 insertions, 3 deletions
diff --git a/app/views/stream_entries/_detailed_status.html.haml b/app/views/stream_entries/_detailed_status.html.haml
index ceb796743..3119ebf4b 100644
--- a/app/views/stream_entries/_detailed_status.html.haml
+++ b/app/views/stream_entries/_detailed_status.html.haml
@@ -39,9 +39,16 @@
       - else
         = link_to status.application.name, status.application.website, class: 'detailed-status__application', target: '_blank', rel: 'noopener'
       ·
-    %span<
-      = fa_icon('retweet')
-      %span= status.reblogs_count
+    - if status.direct_visibility?
+      %span<
+        = fa_icon('envelope')
+    - elsif status.private_visibility?
+      %span<
+        = fa_icon('lock')
+    - else
+      %span<
+        = fa_icon('retweet')
+        %span= status.reblogs_count
     ·
     %span<
       = fa_icon('star')