lint
This commit is contained in:
parent
95eef879d7
commit
2b3ac2d7fe
2 changed files with 14 additions and 8 deletions
|
|
@ -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}} <-
|
||||||
|
|
|
||||||
|
|
@ -281,13 +281,14 @@ defmodule Pleroma.Workers.SignatureRetryWorkerTest do
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
assert {:ok, oban_job} = Federator.incoming_failed_signature_ap_doc(%{
|
assert {:ok, oban_job} =
|
||||||
method: "POST",
|
Federator.incoming_failed_signature_ap_doc(%{
|
||||||
req_headers: headers,
|
method: "POST",
|
||||||
request_path: "/inbox",
|
req_headers: headers,
|
||||||
params: create,
|
request_path: "/inbox",
|
||||||
query_string: ""
|
params: create,
|
||||||
})
|
query_string: ""
|
||||||
|
})
|
||||||
|
|
||||||
log =
|
log =
|
||||||
capture_log([level: :warning], fn ->
|
capture_log([level: :warning], fn ->
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue