Commit 3ece4a3e authored by lain's avatar lain
Browse files

Only return certain activities in TwitterAPI mentions.

parent a9e36e5a
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment