diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-08-18 15:35:54 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:45:19 -0500 |
commit | f0c2dcf6175c1aff5e6a21364c21acff71b5df8d (patch) | |
tree | 76f5ac74f1dd7ac1e7aff5906198ae382e6639c4 /app | |
parent | ba82df2fb4460c525ab91c79f54b20803c82cce9 (diff) |
[Privacy] Restrict visibility of replies to private threads
Diffstat (limited to 'app')
-rw-r--r-- | app/models/status.rb | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/app/models/status.rb b/app/models/status.rb index 68093eb73..36b3eecf4 100644 --- a/app/models/status.rb +++ b/app/models/status.rb @@ -582,14 +582,9 @@ class Status < ApplicationRecord query = query.without_reblogs end - query = if options[:only_replies] - query.replies - elsif options[:include_replies] - if target_account.present? - query.public_conversations.or(query.conversations_by(target_account)) - else - query.public_conversations - end + query = if options[:include_replies] + query = query.replies if options[:only_replies] + query.public_conversations.or(query.conversations_by(target_account)) else query.without_replies end |