Fix queue name
[akkoma] / lib / pleroma / web / activity_pub / mrf / keyword_policy.ex
index 6e2673e9c04cea00c709b13d4772bcd4a6135271..ce6d2e529c4ab8072afbb8318ebc831a7ecd0d40 100644 (file)
@@ -24,18 +24,17 @@ defmodule Pleroma.Web.ActivityPub.MRF.KeywordPolicy do
 
   defp check_ftl_removal(%{"to" => to, "object" => %{"content" => content}} = message) do
     if "https://www.w3.org/ns/activitystreams#Public" in to and
-         Enum.any?(Pleroma.Config.get([:mrf_keyword, :ftl_removal]), fn pattern ->
+         Enum.any?(Pleroma.Config.get([:mrf_keyword, :federated_timeline_removal]), fn pattern ->
            string_matches?(content, pattern)
          end) do
       to = List.delete(to, "https://www.w3.org/ns/activitystreams#Public")
-      cc = ["https://www.w3.org/ns/activitystreams#Public" | [message["cc"] || []]]
+      cc = ["https://www.w3.org/ns/activitystreams#Public" | message["cc"] || []]
 
       message =
         message
         |> Map.put("to", to)
         |> Map.put("cc", cc)
 
-      IO.inspect(message)
       {:ok, message}
     else
       {:ok, message}