[#468] Adjusted scope restriction for MastodonAPIController#index.
authorIvan Tashkinov <ivantashkinov@gmail.com>
Wed, 20 Feb 2019 11:05:02 +0000 (14:05 +0300)
committerIvan Tashkinov <ivantashkinov@gmail.com>
Wed, 20 Feb 2019 11:05:02 +0000 (14:05 +0300)
lib/pleroma/web/router.ex

index 3692e13e3ea7f57bfa07bd5ec95b4801253ac156..421fb075a4d429a7502cdd54874eb80b2855ccc6 100644 (file)
@@ -582,7 +582,7 @@ defmodule Pleroma.Web.Router do
     delete("/auth/sign_out", MastodonAPIController, :logout)
 
     scope [] do
-      pipe_through(:oauth_read)
+      pipe_through(:oauth_read_or_unauthenticated)
       get("/web/*path", MastodonAPIController, :index)
     end
   end