Apply suggestion to lib/pleroma/web/activity_pub/transmogrifier.ex

This commit is contained in:
lain 2020-03-31 17:00:55 +00:00
parent 0be1fa0a86
commit 288f2b5a7c

View file

@ -1267,7 +1267,7 @@ defp maybe_add_context_from_object(%{"object" => object} = data) when is_binary(
end
defp maybe_add_context_from_object(_) do
{:error, "No referenced object"}
{:error, :no_context}
end
defp maybe_add_recipients_from_object(%{"object" => object} = data) do