mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-22 22:49:25 +00:00
Compatibility with phoenix_pubsub 2.0.0
This commit is contained in:
parent
70880d54f8
commit
8156940a49
|
@ -202,7 +202,10 @@ defmodule Pleroma.Application do
|
|||
end
|
||||
|
||||
defp chat_child(true) do
|
||||
[Pleroma.Web.ChatChannel.ChatChannelState]
|
||||
[
|
||||
Pleroma.Web.ChatChannel.ChatChannelState,
|
||||
{Phoenix.PubSub, [name: Pleroma.PubSub, adapter: Phoenix.PubSub.PG2]}
|
||||
]
|
||||
end
|
||||
|
||||
defp chat_child(_), do: []
|
||||
|
|
|
@ -177,7 +177,7 @@ defmodule Pleroma.Web do
|
|||
def channel do
|
||||
quote do
|
||||
# credo:disable-for-next-line Credo.Check.Consistency.MultiAliasImportRequireUse
|
||||
use Phoenix.Channel
|
||||
import Phoenix.Channel
|
||||
import Pleroma.Web.Gettext
|
||||
end
|
||||
end
|
||||
|
|
|
@ -22,7 +22,7 @@ defmodule Pleroma.Web.ChannelCase do
|
|||
using do
|
||||
quote do
|
||||
# Import conveniences for testing with channels
|
||||
use Phoenix.ChannelTest
|
||||
import Phoenix.ChannelTest
|
||||
use Pleroma.Tests.Helpers
|
||||
|
||||
# The default endpoint for testing
|
||||
|
|
Loading…
Reference in a new issue