X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Fweb%2Factivity_pub%2Fmrf%2Fno_placeholder_text_policy.ex;h=fc347504820587efd4a8d968120181e6a7293e8e;hb=a17bfb5fababbe25fa2abcfccd013c9f3edc2ef7;hp=081456046bdb4f81ee00fa34a011b88c6a9f30bc;hpb=fa0392e49cd46e4d2845840232a4b56e52729369;p=akkoma
diff --git a/lib/pleroma/web/activity_pub/mrf/no_placeholder_text_policy.ex b/lib/pleroma/web/activity_pub/mrf/no_placeholder_text_policy.ex
index 081456046..fc3475048 100644
--- a/lib/pleroma/web/activity_pub/mrf/no_placeholder_text_policy.ex
+++ b/lib/pleroma/web/activity_pub/mrf/no_placeholder_text_policy.ex
@@ -1,29 +1,25 @@
# Pleroma: A lightweight social networking server
-# Copyright © 2019 Pleroma Authors
.
"] do - child_object = - child_object - |> Map.put("content", "") - - object = - object - |> Map.put("object", child_object) - - {:ok, object} + {:ok, put_in(object, ["object", "content"], "")} end @impl true def filter(object), do: {:ok, object} + + @impl true + def describe, do: {:ok, %{}} end