Fix mention processing for unknwon accounts on incoming ActivityPub Notes (#10125)

`::FetchRemoteAccountService` is not `ActivityPub::FetchRemoteAccountService`,
its second argument is the pre-fetched body. Passing `id: false` actually passed
a `Hash` as the prefetched body, instead of properly resolving unknown remote
accounts.
This commit is contained in:
ThibG 2019-02-27 14:57:14 +01:00 committed by Eugen Rochko
parent aa63c3e22a
commit 7f5b570688

View file

@ -159,7 +159,7 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
return if tag['href'].blank? return if tag['href'].blank?
account = account_from_uri(tag['href']) account = account_from_uri(tag['href'])
account = ::FetchRemoteAccountService.new.call(tag['href'], id: false) if account.nil? account = ::FetchRemoteAccountService.new.call(tag['href']) if account.nil?
return if account.nil? return if account.nil?