aboutsummaryrefslogtreecommitdiff
path: root/pkg/service
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-07-18 21:41:53 +0200
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-07-18 21:41:53 +0200
commit69d71c2a495d9cce1984ba2ffddf1d98622b01fe (patch)
tree3abd105a970fe773c0b19cb0c4f974688001e5e0 /pkg/service
parent05a8dbf46792adfef007a0ffbcb654026db036fa (diff)
downloadlens-69d71c2a495d9cce1984ba2ffddf1d98622b01fe.tar.gz
lens-69d71c2a495d9cce1984ba2ffddf1d98622b01fe.tar.bz2
lens-69d71c2a495d9cce1984ba2ffddf1d98622b01fe.zip
feat: Move to user path media
Now media also base on user folder to fetch its media.
Diffstat (limited to 'pkg/service')
-rw-r--r--pkg/service/filesystem.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/service/filesystem.go b/pkg/service/filesystem.go
index cdfd106..2e4b510 100644
--- a/pkg/service/filesystem.go
+++ b/pkg/service/filesystem.go
@@ -87,7 +87,7 @@ func (self *FileSystemController) GetPage(ctx context.Context, userID uint, file
}
params := list.Map(files, func(info fs.FileInfo) *FileParam {
- fullPath := path.Join(fullPath, info.Name())
+ fullPath := path.Join(decodedPath, info.Name())
scapedFullPath := url.QueryEscape(fullPath)
return &FileParam{
Info: info,