projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9e36e5
)
Only return certain activities in TwitterAPI mentions.
author
lain
<lain@soykaf.club>
Mon, 28 May 2018 10:38:48 +0000
(12:38 +0200)
committer
lain
<lain@soykaf.club>
Mon, 28 May 2018 10:38:48 +0000
(12:38 +0200)
lib/pleroma/web/twitter_api/twitter_api_controller.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/twitter_api/twitter_api_controller.ex
b/lib/pleroma/web/twitter_api/twitter_api_controller.ex
index dd1dc241d12607023343cbe6f6430b33ac48dd64..c2b0bb01da855f48f92512bde5385bbbd25f983a 100644
(file)
--- a/
lib/pleroma/web/twitter_api/twitter_api_controller.ex
+++ b/
lib/pleroma/web/twitter_api/twitter_api_controller.ex
@@
-107,6
+107,11
@@
defmodule Pleroma.Web.TwitterAPI.Controller do
end
def mentions_timeline(%{assigns: %{user: user}} = conn, params) do
+ params =
+ params
+ |> Map.put("type", ["Create", "Announce", "Follow", "Like"])
+ |> Map.put("blocking_user", user)
+
activities = ActivityPub.fetch_activities([user.ap_id], params)
conn