diff options
Diffstat (limited to 'lib/pleroma/plugs/frontend_static.ex')
-rw-r--r-- | lib/pleroma/plugs/frontend_static.ex | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/pleroma/plugs/frontend_static.ex b/lib/pleroma/plugs/frontend_static.ex index 11a0d5382..3ff1bf016 100644 --- a/lib/pleroma/plugs/frontend_static.ex +++ b/lib/pleroma/plugs/frontend_static.ex @@ -33,6 +33,9 @@ defmodule Pleroma.Plugs.FrontendStatic do |> Map.put(:frontend_type, opts[:frontend_type]) end + def call(%{path_info: ["_matrix" | _]} = conn, _opts), do: conn + def call(%{path_info: ["api" | _]} = conn, _opts), do: conn + def call(conn, opts) do frontend_type = Map.get(opts, :frontend_type, :primary) path = file_path("", frontend_type) |