activitypub: utils: wrap Note objects in a Create when extracting mentions
[akkoma] / lib / pleroma / web / activity_pub / mrf / normalize_markup.ex
index b4f91f3cc66e68e3c7a589d0b407e65a4da0238b..c53cb1ad2ed39fc4f7745ac90f9f8f1704e2c609 100644 (file)
@@ -3,10 +3,8 @@ defmodule Pleroma.Web.ActivityPub.MRF.NormalizeMarkup do
 
   @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
-    scrub_policy = Keyword.get(@mrf_normalize_markup, :scrub_policy)
+    scrub_policy = Pleroma.Config.get([:mrf_normalize_markup, :scrub_policy])
 
     child = object["object"]