projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'fix/eldap-warnings' into 'develop'
[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 b4f91f3cc66e68e3c7a589d0b407e65a4da0238b..3d13cdb32bd0e790cc337295112142fd42fd5df0 100644
(file)
--- a/
lib/pleroma/web/activity_pub/mrf/normalize_markup.ex
+++ b/
lib/pleroma/web/activity_pub/mrf/normalize_markup.ex
@@
-1,12
+1,14
@@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
defmodule Pleroma.Web.ActivityPub.MRF.NormalizeMarkup do
alias Pleroma.HTML
@behaviour Pleroma.Web.ActivityPub.MRF
defmodule Pleroma.Web.ActivityPub.MRF.NormalizeMarkup do
alias Pleroma.HTML
@behaviour Pleroma.Web.ActivityPub.MRF
- @mrf_normalize_markup Application.get_env(:pleroma, :mrf_normalize_markup)
-
def filter(%{"type" => activity_type} = object) when activity_type == "Create" do
def filter(%{"type" => activity_type} = object) when activity_type == "Create" do
- scrub_policy =
Keyword.get(@mrf_normalize_markup, :scrub_policy
)
+ scrub_policy =
Pleroma.Config.get([:mrf_normalize_markup, :scrub_policy]
)
child = object["object"]
child = object["object"]