Only return certain activities in TwitterAPI mentions.

This commit is contained in:
lain 2018-05-28 12:38:48 +02:00
parent a9e36e5a64
commit 3ece4a3ebc
1 changed files with 5 additions and 0 deletions

View File

@ -107,6 +107,11 @@ def user_timeline(%{assigns: %{user: user}} = conn, params) 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