projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
timeline controller: rate limit timelines to 3 requests per 500ms per timeline per...
[akkoma]
/
lib
/
pleroma
/
plugs
/
static_fe_plug.ex
diff --git
a/lib/pleroma/plugs/static_fe_plug.ex
b/lib/pleroma/plugs/static_fe_plug.ex
index 2af45e52a61071c8a39aa2638916e27db1b1aa10..b3fb3c582037c1cc7d393edf299dc44a964c1bf3 100644
(file)
--- a/
lib/pleroma/plugs/static_fe_plug.ex
+++ b/
lib/pleroma/plugs/static_fe_plug.ex
@@
-18,7
+18,7
@@
defmodule Pleroma.Plugs.StaticFEPlug do
end
end
end
end
- defp enabled?, do: Pleroma.Config.get([:
instance, :static_fe
], false)
+ defp enabled?, do: Pleroma.Config.get([:
static_fe, :enabled
], false)
defp accepts_html?(conn) do
conn |> get_req_header("accept") |> List.first() |> String.contains?("text/html")
defp accepts_html?(conn) do
conn |> get_req_header("accept") |> List.first() |> String.contains?("text/html")