projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pagination: Don't be dos'd by random parameters.
[akkoma]
/
lib
/
pleroma
/
web
/
plugs
/
instance_static.ex
diff --git
a/lib/pleroma/web/plugs/instance_static.ex
b/lib/pleroma/web/plugs/instance_static.ex
index 3e6aa826b0fa5ff556417843084c523f95f5c48f..54b9175df1ff0dc6d8e500e31829d1998a6b806a 100644
(file)
--- a/
lib/pleroma/web/plugs/instance_static.ex
+++ b/
lib/pleroma/web/plugs/instance_static.ex
@@
-16,7
+16,7
@@
defmodule Pleroma.Web.Plugs.InstanceStatic do
instance_path =
Path.join(Pleroma.Config.get([:instance, :static_dir], "instance/static/"), path)
instance_path =
Path.join(Pleroma.Config.get([:instance, :static_dir], "instance/static/"), path)
- frontend_path = Pleroma.Plugs.FrontendStatic.file_path(path, :primary)
+ frontend_path = Pleroma.
Web.
Plugs.FrontendStatic.file_path(path, :primary)
(File.exists?(instance_path) && instance_path) ||
(frontend_path && File.exists?(frontend_path) && frontend_path) ||
(File.exists?(instance_path) && instance_path) ||
(frontend_path && File.exists?(frontend_path) && frontend_path) ||