aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2019-05-12 05:01:00 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2019-05-12 05:04:24 +0000
commitc23276a59aa57a89e27c2e2f46d701392917b9a0 (patch)
tree9c43cc67e83fcf4206db9a29b86edb9c0afb2f7d
parentfedaca15a3932897d86f73d836b6b6c2f7860f59 (diff)
downloadpleroma-c23276a59aa57a89e27c2e2f46d701392917b9a0.tar.gz
activitypub: publisher: fixups
-rw-r--r--lib/pleroma/web/activity_pub/publisher.ex5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/pleroma/web/activity_pub/publisher.ex b/lib/pleroma/web/activity_pub/publisher.ex
index 11e54b77d..5d72299a5 100644
--- a/lib/pleroma/web/activity_pub/publisher.ex
+++ b/lib/pleroma/web/activity_pub/publisher.ex
@@ -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