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
1 changed files with 2 additions and 0 deletions

View File

@ -165,6 +165,8 @@ defp unlist(%{"to" => to, "cc" => cc, "actor" => actor} = object) do
object
|> Map.put("to", to)
|> Map.put("cc", cc)
else
_ -> raise "[NsfwApiPolicy]: Could not fetch user #{actor}"
end
end