about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-11-02 02:34:16 -0600
committerFire Demon <firedemon@creature.cafe>2020-11-02 02:34:16 -0600
commit2f230d5c60dcb003b2bad8213daa26a27c6f8610 (patch)
tree10d8d6ba9910e1304320302e7f436dc468d92fb4
parent58b80d03de8a79ef3764c9bd48a22317e6bf6b95 (diff)
Also use participant-only visibility for local replies to private posts
-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 50a558ed1..73eda2c4c 100644
--- a/app/models/status.rb
+++ b/app/models/status.rb
@@ -659,6 +659,7 @@ class Status < ApplicationRecord
     if reply? && !thread.nil?
       self.in_reply_to_account_id = carried_over_reply_to_account_id
       self.conversation_id        = thread.conversation_id if conversation_id.nil?
+      self.visibility             = :limited if visibility.to_s == 'private' && in_reply_to_account_id != account_id
     end
   end