1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Config.DeprecationWarnings do
9 def check_hellthread_threshold do
10 if Config.get([:mrf_hellthread, :threshold]) do
12 !!!DEPRECATION WARNING!!!
13 You are using the old configuration mechanism for the hellthread filter. Please check config.md.
18 def mrf_user_allowlist do
19 config = Config.get(:mrf_user_allowlist)
21 if config && Enum.any?(config, fn {k, _} -> is_atom(k) end) do
23 Enum.reduce(Config.get(:mrf_user_allowlist), Map.new(), fn {k, v}, acc ->
24 Map.put(acc, to_string(k), v)
27 Config.put(:mrf_user_allowlist, rewritten)
30 !!!DEPRECATION WARNING!!!
31 As of Pleroma 2.0.7, the `mrf_user_allowlist` setting changed of format.
32 Pleroma 2.1 will remove support for the old format. Please change your configuration to match this:
34 config :pleroma, :mrf_user_allowlist, #{inspect(rewritten, pretty: true)}
40 check_hellthread_threshold()