activitypub: publisher: fixups
This commit is contained in:
parent
fedaca15a3
commit
c23276a59a
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user