tries to start akkoma twice + fix shoutbox

This commit is contained in:
Fox 2023-03-08 14:07:12 +09:00
parent ba7c47eca9
commit b9acf25060

View file

@ -94,7 +94,6 @@ defmodule Pleroma.Application do
end
opts = [strategy: :one_for_one, name: Pleroma.Supervisor, max_restarts: max_restarts]
result = Supervisor.start_link(children, opts)
with {:ok, data} <- Supervisor.start_link(children, opts) do
set_postgres_server_version()
@ -212,12 +211,15 @@ defmodule Pleroma.Application do
end
@spec task_children(atom()) :: [map()]
defp shout_child(true) do
[
Pleroma.Web.ShoutChannel.ShoutChannelState,
{Phoenix.PubSub, [name: Pleroma.PubSub, adapter: Phoenix.PubSub.PG2]}
]
end
defp shout_child(_), do: []
defp task_children(:test) do
[