diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-10-01 21:41:22 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-10-01 21:41:22 +0300 |
commit | 0d575735bfd280b878bdecc6d018d8cca23ad09f (patch) | |
tree | b04f404739b768bead1e6fbb87cb16fda978fea0 | |
parent | 7efadc3cbd46369e960f31c33a2c555f718ca8c5 (diff) | |
download | pleroma-0d575735bfd280b878bdecc6d018d8cca23ad09f.tar.gz pleroma-0d575735bfd280b878bdecc6d018d8cca23ad09f.zip |
No auth check in UserController.feed_redirect/2, even on non-federating instances.
-rw-r--r-- | lib/pleroma/web/feed/user_controller.ex | 7 |
1 files changed, 1 insertions, 6 deletions
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 |