logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: f15d419062b5f9aba2a2e84257dc2379b44f92e8
parent 718e8e1edb537aca984216be39b3be5c8af4e6da
Author: Alex Gleason <alex@alexgleason.me>
Date:   Wed, 16 Jun 2021 22:30:18 -0500

NsfwApiPolicy: raise if can't fetch user

Diffstat:

Mlib/pleroma/web/activity_pub/mrf/nsfw_api_policy.ex2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib/pleroma/web/activity_pub/mrf/nsfw_api_policy.ex b/lib/pleroma/web/activity_pub/mrf/nsfw_api_policy.ex @@ -165,6 +165,8 @@ defmodule Pleroma.Web.ActivityPub.MRF.NsfwApiPolicy do object |> Map.put("to", to) |> Map.put("cc", cc) + else + _ -> raise "[NsfwApiPolicy]: Could not fetch user #{actor}" end end