about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-08-18 00:07:43 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:45:19 -0500
commit99c139cdd4e3b805b07ee0af26807c332246905c (patch)
tree370b9b680be248892fac18b708f25607efda5b18 /app/models
parent30d4fb1e6ea5144e0b16d9acd74b40811caa7df2 (diff)
[Privacy] Add "include_semiprivate" scope to "permitted_for", disabled by default
Diffstat (limited to 'app/models')
-rw-r--r--app/models/status.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/status.rb b/app/models/status.rb
index e84a0a864..45a5f5c8d 100644
--- a/app/models/status.rb
+++ b/app/models/status.rb
@@ -557,6 +557,7 @@ class Status < ApplicationRecord
       return query if options[:without_category_filters]
 
       query = query.published unless options[:include_unpublished]
+      query = query.without_semiprivate unless options[:include_semiprivate]
 
       if options[:only_reblogs]
         query = query.joins(:reblog)