Pleroma.Web.MastodonAPI.DirectoryController: dialyzer errors
lib/pleroma/web/mastodon_api/controllers/directory_controller.ex:6:unused_fun Function skip_auth/2 will never be called. ________________________________________________________________________________ lib/pleroma/web/mastodon_api/controllers/directory_controller.ex:6:unused_fun Function skip_plug/2 will never be called. ________________________________________________________________________________ lib/pleroma/web/mastodon_api/controllers/directory_controller.ex:18:guard_fail The guard clause: when _action :: atom() == <<105, 110, 100, 101, 120>> can never succeed.
This commit is contained in:
parent
e53c20b03c
commit
6a22a80f9f
|
@ -0,0 +1 @@
|
||||||
|
Mastodon API /api/v1/directory: Fix listing directory contents when not authenticated
|
|
@ -15,7 +15,7 @@ defmodule Pleroma.Web.MastodonAPI.DirectoryController do
|
||||||
|
|
||||||
plug(Pleroma.Web.ApiSpec.CastAndValidate)
|
plug(Pleroma.Web.ApiSpec.CastAndValidate)
|
||||||
|
|
||||||
plug(:skip_auth when action == "index")
|
plug(:skip_auth when action == :index)
|
||||||
|
|
||||||
defdelegate open_api_operation(action), to: Pleroma.Web.ApiSpec.DirectoryOperation
|
defdelegate open_api_operation(action), to: Pleroma.Web.ApiSpec.DirectoryOperation
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue