NsfwApiPolicy: raise if can't fetch user

This commit is contained in:
Alex Gleason 2021-06-16 22:30:18 -05:00
parent 718e8e1edb
commit f15d419062
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -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