From: William Pitcock Date: Thu, 17 Jan 2019 23:32:16 +0000 (+0000) Subject: activitypub: add a match clause for objects, not just activities X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=75a9b2a851eceb5308dbc9f1767d4bf37dcd8f77;p=akkoma activitypub: add a match clause for objects, not just activities --- diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index 92c5ce2ae..130c06028 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -798,6 +798,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do end def is_public?(%Object{data: %{"type" => "Tombstone"}}), do: false + def is_public?(%Object{data: data}), do: is_public?(data) def is_public?(%Activity{data: data}), do: is_public?(data) def is_public?(data) do