projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bd7ace
)
MastoAPI: fix dm_timeline getting non-create activities.
author
eal
<eal@waifu.club>
Wed, 30 May 2018 12:02:22 +0000
(15:02 +0300)
committer
eal
<eal@waifu.club>
Wed, 30 May 2018 12:02:22 +0000
(15:02 +0300)
lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
index e89186ae360101ee84224ab8221927de052be525..64a8a66f76b57204041d1923bcbd4e64265b54cf 100644
(file)
--- 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