TwitterAPI: Fix dm_timeline displaying only half of the conversation.

This commit is contained in:
lain 2018-11-16 19:47:36 +01:00
commit f87b315618
2 changed files with 10 additions and 3 deletions

View file

@ -130,7 +130,7 @@ defmodule Pleroma.Web.TwitterAPI.Controller do
query =
ActivityPub.fetch_activities_query(
[user.ap_id],
Map.merge(params, %{"type" => "Create", visibility: "direct"})
Map.merge(params, %{"type" => "Create", "user" => user, visibility: "direct"})
)
activities = Repo.all(query)