From: Ivan Tashkinov <ivantashkinov@gmail.com>
Date: Wed, 20 Feb 2019 11:05:02 +0000 (+0300)
Subject: [#468] Adjusted scope restriction for MastodonAPIController#index.
X-Git-Url: http://git.squeep.com/?a=commitdiff_plain;h=3ad91ec3c165a1db853390c75f09c8618d08deae;p=akkoma

[#468] Adjusted scope restriction for MastodonAPIController#index.
---

diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex
index 3692e13e3..421fb075a 100644
--- a/lib/pleroma/web/router.ex
+++ b/lib/pleroma/web/router.ex
@@ -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