Merge branch 'docs/storing-remote-media' into 'develop'
[akkoma] / lib / pleroma / config / deprecation_warnings.ex
1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
4
5 defmodule Pleroma.Config.DeprecationWarnings do
6 require Logger
7
8 def check_hellthread_threshold do
9 if Pleroma.Config.get([:mrf_hellthread, :threshold]) do
10 Logger.warn("""
11 !!!DEPRECATION WARNING!!!
12 You are using the old configuration mechanism for the hellthread filter. Please check config.md.
13 """)
14 end
15 end
16
17 def warn do
18 check_hellthread_threshold()
19 end
20 end