Browse Source

fixing logic for 3rd party apps, should now work

pull/56/head v1.0.4+3.1.4
Darius Kazemi 6 years ago
parent
commit
7b81b1b24f
  1. 4
      app/services/post_status_service.rb

4
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

Loading…
Cancel
Save