projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83d4a14
)
Fetch relayed messages from source while we don't have linked data sigs.
author
lain
<lain@soykaf.club>
Wed, 21 Mar 2018 06:12:14 +0000
(07:12 +0100)
committer
lain
<lain@soykaf.club>
Wed, 21 Mar 2018 06:12:14 +0000
(07:12 +0100)
lib/pleroma/web/activity_pub/activity_pub_controller.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/activity_pub/activity_pub_controller.ex
b/lib/pleroma/web/activity_pub/activity_pub_controller.ex
index 85fc954276300a57d864c63a9d6bee765da30c26..b9a70a33f8d16e9434d57f223cca1971379d3dd2 100644
(file)
--- a/
lib/pleroma/web/activity_pub/activity_pub_controller.ex
+++ b/
lib/pleroma/web/activity_pub/activity_pub_controller.ex
@@
-36,7
+36,8
@@
defmodule Pleroma.Web.ActivityPub.ActivityPubController do
def inbox(conn, params) do
headers = Enum.into(conn.req_headers, %{})
if !(String.contains?(headers["signature"] || "", params["actor"])) do
- Logger.info("Signature not from author, relayed message, ignoring")
+ Logger.info("Signature not from author, relayed message, fetching from source")
+ ActivityPub.fetch_object_from_id(params["object"]["id"])
else
Logger.info("Signature error")
Logger.info("Could not validate #{params["actor"]}")