Application: Actually start finch if it's needed
authorLain Soykaf <lain@lain.com>
Wed, 15 Dec 2021 20:42:37 +0000 (15:42 -0500)
committerLain Soykaf <lain@lain.com>
Wed, 15 Dec 2021 20:42:37 +0000 (15:42 -0500)
lib/pleroma/application.ex

index 34eaed18193d47be3c61a9310ec66c08ff5741cb..952579c7f87dab951739930a05b9e1eff32ec8e5 100644 (file)
@@ -61,7 +61,8 @@ defmodule Pleroma.Application do
 
     adapter = Application.get_env(:tesla, :adapter)
 
-    if adapter == Tesla.Adapter.Finch do
+    if match?({Tesla.Adapter.Finch, _}, adapter) do
+      Logger.info("Starting Finch")
       Finch.start_link(name: MyFinch)
     end