mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 02:05:12 +00:00
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 a new issue