From: eal Date: Wed, 30 May 2018 12:02:22 +0000 (+0300) Subject: MastoAPI: fix dm_timeline getting non-create activities. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=7cb2e2971e8d348e9c808455e2e4c262e09da806;p=akkoma MastoAPI: fix dm_timeline getting non-create activities. --- diff --git a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex index e89186ae3..64a8a66f7 100644 --- a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex +++ b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex @@ -241,7 +241,9 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController 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