TwitterAPI: Don't put follows into the public tls.
authorlain <lain@soykaf.club>
Wed, 4 Apr 2018 13:23:27 +0000 (15:23 +0200)
committerlain <lain@soykaf.club>
Wed, 4 Apr 2018 13:23:27 +0000 (15:23 +0200)
lib/pleroma/web/twitter_api/twitter_api_controller.ex

index 157e4826b2ef3ee6a4522d3bc3d10e37e702153b..5f44e46c058b097c55230717fc97fa145e3a7fd3 100644 (file)
@@ -45,7 +45,7 @@ defmodule Pleroma.Web.TwitterAPI.Controller do
   def public_and_external_timeline(%{assigns: %{user: user}} = conn, params) do
     params =
       params
-      |> Map.put("type", ["Create", "Announce", "Follow"])
+      |> Map.put("type", ["Create", "Announce"])
       |> Map.put("blocking_user", user)
 
     activities = ActivityPub.fetch_public_activities(params)
@@ -57,7 +57,7 @@ defmodule Pleroma.Web.TwitterAPI.Controller do
   def public_timeline(%{assigns: %{user: user}} = conn, params) do
     params =
       params
-      |> Map.put("type", ["Create", "Announce", "Follow"])
+      |> Map.put("type", ["Create", "Announce"])
       |> Map.put("local_only", true)
       |> Map.put("blocking_user", user)