fix tests
authorFloatingGhost <hannah@coffee-and-dreams.uk>
Fri, 14 Apr 2023 14:20:55 +0000 (15:20 +0100)
committerFloatingGhost <hannah@coffee-and-dreams.uk>
Fri, 14 Apr 2023 14:20:55 +0000 (15:20 +0100)
lib/pleroma/web/plugs/frontend_static.ex
test/pleroma/web/plugs/frontend_static_plug_test.exs

index 91dfc77c34f28080bee5b09383868c4ab0272d27..1d68614568fb967b479ee4d41de3c0c5b6c1dd06 100644 (file)
@@ -50,7 +50,6 @@ defmodule Pleroma.Web.Plugs.FrontendStatic do
   end
 
   def call(conn, opts) do
-    IO.inspect("OPTS: #{inspect(opts)}")
     with false <- api_route?(conn.path_info),
          false <- invalid_path?(conn.path_info),
          true <- enabled?(opts[:if]),
@@ -83,7 +82,7 @@ defmodule Pleroma.Web.Plugs.FrontendStatic do
     end
   end
 
-  def preferred_or_fallback(conn, fallback), do: fallback
+  def preferred_or_fallback(_conn, fallback), do: fallback
 
   defp enabled?(if_opt) when is_function(if_opt), do: if_opt.()
   defp enabled?(true), do: true
@@ -106,7 +105,6 @@ defmodule Pleroma.Web.Plugs.FrontendStatic do
 
   defp call_static(conn, opts, from) do
     opts = Map.put(opts, :from, from)
-    IO.inspect(opts, label: "opts")
     Plug.Static.call(conn, opts)
   end
 end
index 66e6ba4ca68203c19355d70f3314b11c69ad1343..815e888ee995445b4a1097817d65bfd7cb1dd390 100644 (file)
@@ -83,6 +83,7 @@ defmodule Pleroma.Web.Plugs.FrontendStaticPlugTest do
       "main",
       "ostatus_subscribe",
       "oauth",
+      "akkoma",
       "objects",
       "activities",
       "notice",