Skip to content
Snippets Groups Projects
Commit c23276a5 authored by kaniini's avatar kaniini
Browse files

activitypub: publisher: fixups

parent fedaca15
No related branches found
No related tags found
No related merge requests found
......@@ -26,10 +26,11 @@ defmodule Pleroma.Web.ActivityPub.Publisher do
Determine if an activity can be represented by running it through Transmogrifier.
"""
def is_representable?(%Activity{} = activity) do
with %{} = _data <- Transmogrifier.prepare_outgoing(activity.data) do
with {:ok, _data} <- Transmogrifier.prepare_outgoing(activity.data) do
true
else
_e -> false
_e ->
false
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment