projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update references to pleroma in docs
[akkoma]
/
lib
/
pleroma
/
web
/
activity_pub
/
mrf
/
normalize_markup.ex
diff --git
a/lib/pleroma/web/activity_pub/mrf/normalize_markup.ex
b/lib/pleroma/web/activity_pub/mrf/normalize_markup.ex
index 2ad3fde0b3ed5fc7308ff3fd5bf126239c003253..151c6ed2053a7d8a281b13c15d9a5f5ded77a672 100644
(file)
--- a/
lib/pleroma/web/activity_pub/mrf/normalize_markup.ex
+++ b/
lib/pleroma/web/activity_pub/mrf/normalize_markup.ex
@@
-6,10
+6,14
@@
defmodule Pleroma.Web.ActivityPub.MRF.NormalizeMarkup do
@moduledoc "Scrub configured hypertext markup"
alias Pleroma.HTML
@moduledoc "Scrub configured hypertext markup"
alias Pleroma.HTML
- @behaviour Pleroma.Web.ActivityPub.MRF
+ @behaviour Pleroma.Web.ActivityPub.MRF
.Policy
@impl true
@impl true
- def filter(%{"type" => "Create", "object" => child_object} = object) do
+ def history_awareness, do: :auto
+
+ @impl true
+ def filter(%{"type" => type, "object" => child_object} = object)
+ when type in ["Create", "Update"] do
scrub_policy = Pleroma.Config.get([:mrf_normalize_markup, :scrub_policy])
content =
scrub_policy = Pleroma.Config.get([:mrf_normalize_markup, :scrub_policy])
content =