MastoAPI: fix dm_timeline getting non-create activities.
This commit is contained in:
parent
8bd7ace420
commit
7cb2e2971e
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue