mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-11-18 23:51:01 +00:00
Merge branch 'fix/dm-timeline-activities' into 'develop'
MastoAPI: fix dm_timeline getting non-create activities. See merge request pleroma/pleroma!182
This commit is contained in:
commit
196d36a7d5
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