activitypub: publisher: fixups

This commit is contained in:
William Pitcock 2019-05-12 05:01:00 +00:00
parent fedaca15a3
commit c23276a59a

View file

@ -26,10 +26,11 @@ defmodule Pleroma.Web.ActivityPub.Publisher do
Determine if an activity can be represented by running it through Transmogrifier. Determine if an activity can be represented by running it through Transmogrifier.
""" """
def is_representable?(%Activity{} = activity) do def is_representable?(%Activity{} = activity) do
with %{} = _data <- Transmogrifier.prepare_outgoing(activity.data) do with {:ok, _data} <- Transmogrifier.prepare_outgoing(activity.data) do
true true
else else
_e -> false _e ->
false
end end
end end