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
@ -241,7 +241,9 @@ def user_statuses(%{assigns: %{user: reading_user}} = conn, params) do
|
|||||||
end
|
end
|
||||||
|
|
||||||
def dm_timeline(%{assigns: %{user: user}} = conn, params) do
|
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)
|
activities = Repo.all(query)
|
||||||
|
|
||||||
conn
|
conn
|
||||||
|
Loading…
Reference in New Issue
Block a user