Browse Source

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.
pull/4/head
ThibG 5 years ago
committed by Eugen Rochko
parent
commit
9edab46368
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/lib/activitypub/activity/create.rb

+ 1
- 1
app/lib/activitypub/activity/create.rb View File

@ -159,7 +159,7 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
return if tag['href'].blank?
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?

Loading…
Cancel
Save