diff options
-rw-r--r-- | app/services/post_status_service.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/post_status_service.rb b/app/services/post_status_service.rb index 6718b5a69..274c2c297 100644 --- a/app/services/post_status_service.rb +++ b/app/services/post_status_service.rb @@ -121,6 +121,8 @@ class PostStatusService < BaseService end def limit_visibility_to_reply + return if @in_reply_to.visibility.nil? + @visibility = @in_reply_to.visibility if @visibility.nil? || VISIBILITY_RANK[@visibility] < VISIBILITY_RANK[@in_reply_to.visibility] end |