MastoAPI: fix dm_timeline getting non-create activities.
This commit is contained in:
parent
8bd7ace420
commit
7cb2e2971e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user