fixing logic for 3rd party apps, should now work
This commit is contained in:
parent
2dbaa1d38a
commit
7b81b1b24f
@ -89,10 +89,10 @@ class PostStatusService < BaseService
|
|||||||
|
|
||||||
def local_only_option(local_only, in_reply_to, federation_setting)
|
def local_only_option(local_only, in_reply_to, federation_setting)
|
||||||
if local_only.nil?
|
if local_only.nil?
|
||||||
if in_reply_to&.local_only?
|
if in_reply_to && in_reply_to.local_only
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
if !in_reply_to&.local_only?
|
if in_reply_to && !in_reply_to.local_only
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
return !federation_setting
|
return !federation_setting
|
||||||
|
Loading…
Reference in New Issue
Block a user