using another fn for file deletion
[akkoma] / lib / pleroma / web / mastodon_api / controllers / status_controller.ex
index 5c90065f6f9298dbb207cab596786d65175baae7..37afe6949f29f1e116beb5f6c1d88fdf3c19852f 100644 (file)
@@ -76,7 +76,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusController do
     %{scopes: ["write:bookmarks"]} when action in [:bookmark, :unbookmark]
   )
 
-  plug(Pleroma.Plugs.EnsurePublicOrAuthenticatedPlug)
+  plug(Pleroma.Plugs.EnsurePublicOrAuthenticatedPlug when action not in [:index, :show])
 
   @rate_limited_status_actions ~w(reblog unreblog favourite unfavourite create delete)a