TwitterAPI: Don't put follows into the public tls.
This commit is contained in:
parent
81600c94f4
commit
d70d1c427a
@ -45,7 +45,7 @@ defmodule Pleroma.Web.TwitterAPI.Controller do
|
|||||||
def public_and_external_timeline(%{assigns: %{user: user}} = conn, params) do
|
def public_and_external_timeline(%{assigns: %{user: user}} = conn, params) do
|
||||||
params =
|
params =
|
||||||
params
|
params
|
||||||
|> Map.put("type", ["Create", "Announce", "Follow"])
|
|> Map.put("type", ["Create", "Announce"])
|
||||||
|> Map.put("blocking_user", user)
|
|> Map.put("blocking_user", user)
|
||||||
|
|
||||||
activities = ActivityPub.fetch_public_activities(params)
|
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
|
def public_timeline(%{assigns: %{user: user}} = conn, params) do
|
||||||
params =
|
params =
|
||||||
params
|
params
|
||||||
|> Map.put("type", ["Create", "Announce", "Follow"])
|
|> Map.put("type", ["Create", "Announce"])
|
||||||
|> Map.put("local_only", true)
|
|> Map.put("local_only", true)
|
||||||
|> Map.put("blocking_user", user)
|
|> Map.put("blocking_user", user)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user