X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fpleroma%2Fapplication.ex;h=d37454d2c7cabedfbd308aff385b47e3a2ef09b5;hb=c301a95276fd1e66208a9f6ccdcf5e29f0be51e1;hp=9824e0a4ac3353ff195014cdcb591f6d1b809dda;hpb=62bf6d67e393d2b290d226e8505d622d944c9a26;p=akkoma diff --git a/lib/pleroma/application.ex b/lib/pleroma/application.ex index 9824e0a4a..d37454d2c 100644 --- a/lib/pleroma/application.ex +++ b/lib/pleroma/application.ex @@ -61,6 +61,11 @@ defmodule Pleroma.Application do adapter = Application.get_env(:tesla, :adapter) + if match?({Tesla.Adapter.Finch, _}, adapter) do + Logger.info("Starting Finch") + Finch.start_link(name: MyFinch) + end + if adapter == Tesla.Adapter.Gun do if version = Pleroma.OTPVersion.version() do [major, minor] = @@ -102,8 +107,7 @@ defmodule Pleroma.Application do ] ++ task_children(@mix_env) ++ dont_run_in_test(@mix_env) ++ - shout_child(shout_enabled?()) ++ - [Pleroma.Gopher.Server] + shout_child(shout_enabled?()) # See http://elixir-lang.org/docs/stable/elixir/Supervisor.html # for other strategies and supported options