Reverse reply_to_local requirement to return false when no check tags
This commit is contained in:
parent
cee5f845fa
commit
aba7af8e59
1 changed files with 2 additions and 2 deletions
|
@ -421,11 +421,11 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
|
|||
end
|
||||
|
||||
def reply_to_local_from_tags?
|
||||
(@mentions.nil? || @mentions.any? { |m| m.account.local? })
|
||||
(@mentions.present? && @mentions.any? { |m| m.account.local? })
|
||||
end
|
||||
|
||||
def reply_to_local_from_tags_following?
|
||||
(@mentions.nil? || @mentions.none? { |m| m.account.local? && !m.account.following?(@account) })
|
||||
(@mentions.present? && @mentions.none? { |m| m.account.local? && !m.account.following?(@account) })
|
||||
end
|
||||
|
||||
def reply_to_local?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue