mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 00:26:30 +00:00
Better signature errors messages.
This commit is contained in:
parent
13ea3eafe5
commit
59ad395ffa
1 changed files with 8 additions and 3 deletions
|
@ -34,9 +34,14 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubController do
|
|||
end
|
||||
|
||||
def inbox(conn, params) do
|
||||
if !(String.contains(conn.req_headers["signature"] || "", params["actor"])) do
|
||||
Logger.info("Signature not from author, relayed message, ignoring.")
|
||||
else
|
||||
Logger.info("Signature error.")
|
||||
Logger.info("Could not validate #{params["actor"]}")
|
||||
Logger.info(inspect(conn.req_headers))
|
||||
end
|
||||
|
||||
json(conn, "ok")
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue