diff options
author | Alex Gleason <alex@alexgleason.me> | 2022-02-09 11:13:55 -0600 |
---|---|---|
committer | Alex Gleason <alex@alexgleason.me> | 2022-02-09 11:13:55 -0600 |
commit | 11f03344d385de78e79e35ccfe8c980f9f6e32b3 (patch) | |
tree | e9bbf8f4e5a62c996afb2a3c553183c6230e3f67 | |
parent | 9cea98b7e4170f4b194142391b9c4a069c3a5945 (diff) | |
download | pleroma-11f03344d385de78e79e35ccfe8c980f9f6e32b3.tar.gz |
Persist all objects with Activities struct (for now) so they get all the extra metadata
-rw-r--r-- | lib/pleroma/web/activity_pub/activity_pub.ex | 8 |
1 files changed, 0 insertions, 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 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do 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), |