logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://anongit.hacktivis.me/git/pleroma.git/
commit: 55612cb8ee4908a2fbb200ff581bb07c7e43410a
parent fd83b86b99ee6642fa0a765a55c0f0e35f272151
Author: Alex Gleason <alex@alexgleason.me>
Date:   Tue, 12 Mar 2024 15:52:33 -0500

mix format

Diffstat:

Mlib/pleroma/web/activity_pub/mrf/remote_report_policy.ex11++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/lib/pleroma/web/activity_pub/mrf/remote_report_policy.ex b/lib/pleroma/web/activity_pub/mrf/remote_report_policy.ex @@ -39,11 +39,12 @@ defmodule Pleroma.Web.ActivityPub.MRF.RemoteReportPolicy do end defp maybe_reject_third_party(%{"object" => objects} = object) do - {_, to} = case objects do - [head | tail] when is_binary(head) -> {tail, head} - s when is_binary(s) -> {[], s} - _ -> {[], ""} - end + {_, to} = + case objects do + [head | tail] when is_binary(head) -> {tail, head} + s when is_binary(s) -> {[], s} + _ -> {[], ""} + end with true <- Config.get([:mrf_remote_report, :reject_third_party]), String.starts_with?(to, Pleroma.Web.Endpoint.url()) do