MastoAPI: fix dm_timeline getting non-create activities.

This commit is contained in:
eal 2018-05-30 15:02:22 +03:00
parent 8bd7ace420
commit 7cb2e2971e

View file

@ -241,7 +241,9 @@ def user_statuses(%{assigns: %{user: reading_user}} = conn, params) do
end
def dm_timeline(%{assigns: %{user: user}} = conn, params) do
query = ActivityPub.fetch_activities_query([user.ap_id], %{visibility: "direct"})
query =
ActivityPub.fetch_activities_query([user.ap_id], %{"type" => "Create", visibility: "direct"})
activities = Repo.all(query)
conn