fixing logic for 3rd party apps, should now work

This commit is contained in:
Darius Kazemi 2020-05-17 09:55:30 -07:00
parent 2dbaa1d38a
commit 7b81b1b24f

View File

@ -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