Skip to content

Commit 0a43c2c

Browse files
ClearlyClaireGargron
authored andcommitted
Fix mention processing for unknwon accounts on incoming ActivityPub Notes (mastodon#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.
1 parent cac884f commit 0a43c2c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/lib/activitypub/activity/create.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def process_mention(tag)
159159
return if tag['href'].blank?
160160

161161
account = account_from_uri(tag['href'])
162-
account = ::FetchRemoteAccountService.new.call(tag['href'], id: false) if account.nil?
162+
account = ::FetchRemoteAccountService.new.call(tag['href']) if account.nil?
163163

164164
return if account.nil?
165165

0 commit comments

Comments
 (0)