We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5816a34 commit 97310f8Copy full SHA for 97310f8
modules/public/public.go
@@ -14,6 +14,7 @@ import (
14
"time"
15
16
"code.gitea.io/gitea/modules/setting"
17
+
18
"github.com/gin-gonic/gin"
19
)
20
@@ -44,7 +45,7 @@ type staticFileSystem struct {
44
45
46
func newStaticFileSystem(directory string) staticFileSystem {
47
if !filepath.IsAbs(directory) {
- directory = filepath.Join(setting.StaticRootPath, directory)
48
+ directory = filepath.Join(setting.AppWorkPath, directory)
49
}
50
dir := http.Dir(directory)
51
return staticFileSystem{&dir}
0 commit comments