about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-09-24 23:31:51 -0500
committermultiple creatures <dev@multiple-creature.party>2019-09-24 23:31:51 -0500
commite0103d164930cfdc088ef99761b3eccf3a6a7825 (patch)
treed2eb7765e6af7795b5af59102be6d7ff8e94d322 /app/services
parent1273ee7cfdb93c86c0767774d7a1791d1363bdc5 (diff)
include `local` scope in visibility limit if an account is silenced
Diffstat (limited to 'app/services')
-rw-r--r--app/services/post_status_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/post_status_service.rb b/app/services/post_status_service.rb
index 3975a37d8..95333585f 100644
--- a/app/services/post_status_service.rb
+++ b/app/services/post_status_service.rb
@@ -110,7 +110,7 @@ class PostStatusService < BaseService
   end
 
   def limit_visibility_if_silenced
-    @visibility = :unlisted if @visibility.in?([nil, 'public']) && @account.silenced? || @account.force_unlisted
+    @visibility = :unlisted if @visibility.in?([nil, 'public', 'local']) && @account.silenced? || @account.force_unlisted
   end
 
   def limit_visibility_to_reply