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 f549ca75f..017e0819e 100644 --- a/lib/pleroma/plugs/frontend_static.ex +++ b/lib/pleroma/plugs/frontend_static.ex @@ -32,6 +32,9 @@ defmodule Pleroma.Plugs.FrontendStatic do |> Plug.Static.init() 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) |