Apply suggestion to lib/pleroma/web/activity_pub/transmogrifier.ex
authorlain <lain@soykaf.club>
Tue, 31 Mar 2020 17:00:55 +0000 (17:00 +0000)
committerlain <lain@soykaf.club>
Tue, 31 Mar 2020 17:00:55 +0000 (17:00 +0000)
lib/pleroma/web/activity_pub/transmogrifier.ex

index fb41ec8e9e6dc4b85f2840994569ae83bd6ac5e3..a3529f09b11a95de45a6b4a05fa62102e8641ee6 100644 (file)
@@ -1267,7 +1267,7 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
   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