Commit c1ebb38d authored by lain's avatar lain

Conversation: Also create participations for remote users.

Needed to get the participating user list.
parent 6f880b16
......@@ -51,7 +51,7 @@ defmodule Pleroma.Conversation do
ap_id when is_binary(ap_id) <- activity.data["object"]["context"] do
{:ok, conversation} = create_for_ap_id(ap_id)
users = User.get_users_from_set(activity.recipients)
users = User.get_users_from_set(activity.recipients, false)
participations =
Enum.map(users, fn user ->
......
......@@ -31,7 +31,7 @@ defmodule Pleroma.ConversationTest do
test "it creates or updates a conversation and participations for a given DM" do
har = insert(:user)
jafnhar = insert(:user)
jafnhar = insert(:user, local: false)
tridi = insert(:user)
{:ok, activity} =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment