projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add link verification in profile fields (#405)
[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 0fb57e42257f5927cd6c7e6299782d8526ff9c4f..723b256793b28485e2f947003ec383c66c92db12 100644
(file)
--- a/
lib/pleroma/web/plugs/instance_static.ex
+++ b/
lib/pleroma/web/plugs/instance_static.ex
@@
-1,8
+1,8
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-202
0
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-202
1
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
# SPDX-License-Identifier: AGPL-3.0-only
-defmodule Pleroma.Plugs.InstanceStatic do
+defmodule Pleroma.
Web.
Plugs.InstanceStatic do
require Pleroma.Constants
@moduledoc """
require Pleroma.Constants
@moduledoc """
@@
-16,7
+16,7
@@
defmodule Pleroma.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) ||