X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fpleroma%2Fapplication.ex;h=203a9500495db6224c637d1c98a510f81d5505c9;hb=1b79dce7bc53f0aa6ce07fdc178bb72b5caabe98;hp=e3edd05ca1b1744c6039ba4e1f346247a0768780;hpb=72aeb2e73b77611504e1cd524a9cb47faef6816f;p=akkoma
diff --git a/lib/pleroma/application.ex b/lib/pleroma/application.ex
index e3edd05ca..203a95004 100644
--- a/lib/pleroma/application.ex
+++ b/lib/pleroma/application.ex
@@ -1,5 +1,5 @@
# Pleroma: A lightweight social networking server
-# Copyright © 2017-2020 Pleroma Authors
+# Copyright © 2017-2021 Pleroma Authors
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Application do
@@ -114,9 +114,6 @@ defmodule Pleroma.Application do
set_postgres_server_version()
- # Requires Config.TransferTask so ConfigDB values are loaded
- steal_emoji_policy_setup()
-
result
end
@@ -303,20 +300,4 @@ defmodule Pleroma.Application do
[Pleroma.Web.RichMedia.Helpers, Pleroma.Web.MediaProxy]
|> Enum.each(&ConcurrentLimiter.new(&1, 1, 0))
end
-
- @spec steal_emoji_policy_setup() :: :ok
- defp steal_emoji_policy_setup() do
- with true <-
- Pleroma.Web.ActivityPub.MRF.StealEmojiPolicy in Config.get!([:mrf, :policies]) do
- path =
- [:instance, :static_dir]
- |> Config.get!()
- |> Path.join("emoji/steal")
-
- if !File.exists?(path), do: File.mkdir_p!(path)
- else
- _ ->
- :ok
- end
- end
end