1 # Pleroma: A lightweight social networking server
2 # Copyright © 2019 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Web.ActivityPub.MRF.NoPlaceholderTextPolicy do
6 @behaviour Pleroma.Web.ActivityPub.MRF
12 "object" => %{"content" => content, "attachment" => _attachment} = child_object
15 when content in [".", "<p>.</p>"] do
18 |> Map.put("content", "")
22 |> Map.put("object", child_object)
28 def filter(object), do: {:ok, object}