activitypub: add a match clause for objects, not just activities
authorWilliam Pitcock <nenolod@dereferenced.org>
Thu, 17 Jan 2019 23:32:16 +0000 (23:32 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Thu, 17 Jan 2019 23:32:16 +0000 (23:32 +0000)
lib/pleroma/web/activity_pub/activity_pub.ex

index 92c5ce2aea090340f1b861ab54c9f0f0deaadcad..130c06028f21585096c4e423a395bffdcec9a641 100644 (file)
@@ -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