From: Ivan Tashkinov Date: Thu, 1 Oct 2020 18:41:22 +0000 (+0300) Subject: No auth check in UserController.feed_redirect/2, even on non-federating instances. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=0d575735bfd280b878bdecc6d018d8cca23ad09f;p=akkoma No auth check in UserController.feed_redirect/2, even on non-federating instances. --- diff --git a/lib/pleroma/web/feed/user_controller.ex b/lib/pleroma/web/feed/user_controller.ex index 71eb1ea7e..09ecdedb4 100644 --- a/lib/pleroma/web/feed/user_controller.ex +++ b/lib/pleroma/web/feed/user_controller.ex @@ -23,12 +23,7 @@ defmodule Pleroma.Web.Feed.UserController do def feed_redirect(%{assigns: %{format: format}} = conn, _params) when format in ["json", "activity+json"] do - with %{halted: false} = conn <- - Pleroma.Plugs.EnsureAuthenticatedPlug.call(conn, - unless_func: &Pleroma.Web.FederatingPlug.federating?/1 - ) do - ActivityPubController.call(conn, :user) - end + ActivityPubController.call(conn, :user) end def feed_redirect(conn, %{"nickname" => nickname}) do