diff options
author | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2023-07-18 21:41:53 +0200 |
---|---|---|
committer | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2023-07-18 21:41:53 +0200 |
commit | 69d71c2a495d9cce1984ba2ffddf1d98622b01fe (patch) | |
tree | 3abd105a970fe773c0b19cb0c4f974688001e5e0 /pkg/service | |
parent | 05a8dbf46792adfef007a0ffbcb654026db036fa (diff) | |
download | lens-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.go | 2 |
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, |