diff --git a/app/services/post_status_service.rb b/app/services/post_status_service.rb index 61bcdd11b..0fd68ebc7 100644 --- a/app/services/post_status_service.rb +++ b/app/services/post_status_service.rb @@ -89,10 +89,10 @@ class PostStatusService < BaseService def local_only_option(local_only, in_reply_to, federation_setting) if local_only.nil? - if in_reply_to&.local_only? + if in_reply_to && in_reply_to.local_only return true end - if !in_reply_to&.local_only? + if in_reply_to && !in_reply_to.local_only return false end return !federation_setting