TwitterAPI: Don't put follows into the public tls.

This commit is contained in:
lain 2018-04-04 15:23:27 +02:00
parent 81600c94f4
commit d70d1c427a

View 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)