logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma
commit: c50c7745bc8b8f52ba07c69c0d2505df54da0f59
parent: 83d4a1495ce530b6b308bb47668268d68a8fb3e2
Author: lain <lain@soykaf.club>
Date:   Wed, 21 Mar 2018 07:12:14 +0100

Fetch relayed messages from source while we don't have linked data sigs.

Diffstat:

Mlib/pleroma/web/activity_pub/activity_pub_controller.ex3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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"]}")