From 11f03344d385de78e79e35ccfe8c980f9f6e32b3 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 9 Feb 2022 11:13:55 -0600 Subject: Persist all objects with Activities struct (for now) so they get all the extra metadata --- lib/pleroma/web/activity_pub/activity_pub.ex | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index 409243d77..216758467 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -97,14 +97,6 @@ defp increase_replies_count_if_reply(%{ defp increase_replies_count_if_reply(_create_data), do: :noop - @object_types ~w[ChatMessage Question Answer Audio Video Event Article Note Page] - @impl true - def persist(%{"type" => type} = object, meta) when type in @object_types do - with {:ok, object} <- Object.create(object) do - {:ok, object, meta} - end - end - @impl true def persist(object, meta) do with local <- Keyword.fetch!(meta, :local), -- cgit v1.2.3