From: lain Date: Mon, 28 May 2018 10:38:48 +0000 (+0200) Subject: Only return certain activities in TwitterAPI mentions. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=3ece4a3ebc05ecc00be6f0a8247d8ca819dc8624;p=akkoma Only return certain activities in TwitterAPI mentions. --- 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