Skip to content
Snippets Groups Projects
Unverified Commit 92319d73 authored by ThibG's avatar ThibG Committed by GitHub
Browse files

Fix dereferencing remote statuses not using the correct account (#14656)

Follow-up to #14359

In the case of limited toots, the receiver may not be explicitly part of the
audience. If a specific user's inbox URI was specified, it makes sense to
dereference the toot from the corresponding user, instead of trying to find
someone in the explicit audience.
parent e8d41bc2
No related branches found
No related tags found
No related merge requests found
......@@ -168,6 +168,8 @@ class ActivityPub::Activity
end
def signed_fetch_account
return Account.find(@options[:delivered_to_account_id]) if @options[:delivered_to_account_id].present?
first_mentioned_local_account || first_local_follower
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment