This commit is contained in:
Phantasm 2026-05-13 00:44:33 +02:00
commit 2b3ac2d7fe
No known key found for this signature in database
GPG key ID: 2669E588BCC634C8
2 changed files with 14 additions and 8 deletions

View file

@ -303,7 +303,12 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubController do
end end
end end
def inbox(%{assigns: %{valid_signature: true, valid_host_header: true}} = conn, %{"nickname" => nickname} = params) do def inbox(
%{
assigns: %{valid_signature: true, valid_host_header: true}
} = conn,
%{"nickname" => nickname} = params
) do
with {:recipient_exists, %User{} = recipient} <- with {:recipient_exists, %User{} = recipient} <-
{:recipient_exists, User.get_cached_by_nickname(nickname)}, {:recipient_exists, User.get_cached_by_nickname(nickname)},
{:sender_exists, {:ok, %User{} = actor}} <- {:sender_exists, {:ok, %User{} = actor}} <-

View file

@ -281,7 +281,8 @@ defmodule Pleroma.Workers.SignatureRetryWorkerTest do
} }
] ]
assert {:ok, oban_job} = Federator.incoming_failed_signature_ap_doc(%{ assert {:ok, oban_job} =
Federator.incoming_failed_signature_ap_doc(%{
method: "POST", method: "POST",
req_headers: headers, req_headers: headers,
request_path: "/inbox", request_path: "/inbox",