From: William Pitcock Date: Sun, 12 May 2019 05:01:00 +0000 (+0000) Subject: activitypub: publisher: fixups X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=c23276a59aa57a89e27c2e2f46d701392917b9a0;p=akkoma activitypub: publisher: fixups --- 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