From 3ece4a3ebc05ecc00be6f0a8247d8ca819dc8624 Mon Sep 17 00:00:00 2001 From: lain Date: Mon, 28 May 2018 12:38:48 +0200 Subject: [PATCH] Only return certain activities in TwitterAPI mentions. --- lib/pleroma/web/twitter_api/twitter_api_controller.ex | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/pleroma/web/twitter_api/twitter_api_controller.ex b/lib/pleroma/web/twitter_api/twitter_api_controller.ex index dd1dc241d..c2b0bb01d 100644 --- 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 -- 2.45.2