Fix posts being streamed to non-local websocket channels.

This commit is contained in:
eal 2017-11-20 07:58:43 +02:00
commit bd921ca5d7
2 changed files with 4 additions and 3 deletions

View file

@ -318,6 +318,7 @@ defmodule Pleroma.UserTest do
assert [addressed] == User.get_recipients_from_activity(activity)
{:ok, user} = User.follow(user, actor)
{:ok, user_two} = User.follow(user_two, actor)
recipients = User.get_recipients_from_activity(activity)
assert length(recipients) == 2
assert user in recipients