NsfwApiPolicy: raise if can't fetch user
This commit is contained in:
parent
718e8e1edb
commit
f15d419062
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue