diff options
author | William Pitcock <nenolod@dereferenced.org> | 2019-05-12 05:01:00 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2019-05-12 05:04:24 +0000 |
commit | c23276a59aa57a89e27c2e2f46d701392917b9a0 (patch) | |
tree | 9c43cc67e83fcf4206db9a29b86edb9c0afb2f7d /lib | |
parent | fedaca15a3932897d86f73d836b6b6c2f7860f59 (diff) | |
download | pleroma-c23276a59aa57a89e27c2e2f46d701392917b9a0.tar.gz |
activitypub: publisher: fixups
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/activity_pub/publisher.ex | 5 |
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 |