Compatibility with phoenix_pubsub 2.0.0

This commit is contained in:
Mark Felder 2020-10-07 13:28:39 -05:00
parent 70880d54f8
commit 8156940a49
3 changed files with 6 additions and 3 deletions

View File

@ -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: []

View File

@ -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

View File

@ -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