diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-08-18 00:07:43 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:45:19 -0500 |
commit | 99c139cdd4e3b805b07ee0af26807c332246905c (patch) | |
tree | 370b9b680be248892fac18b708f25607efda5b18 /app/models | |
parent | 30d4fb1e6ea5144e0b16d9acd74b40811caa7df2 (diff) |
[Privacy] Add "include_semiprivate" scope to "permitted_for", disabled by default
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/status.rb | 1 |
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) |