diff options
| author | Pitu <[email protected]> | 2021-01-07 17:11:01 +0900 |
|---|---|---|
| committer | Pitu <[email protected]> | 2021-01-07 17:11:01 +0900 |
| commit | 46ec3f716880a18c88e1fd15bf90b3e4ba185bc6 (patch) | |
| tree | 9ab8918d076bb10099ac619374b43a05e4314854 /src/api/utils/Util.js | |
| parent | fix: terminate rehashing script when done (diff) | |
| download | host.fuwn.me-46ec3f716880a18c88e1fd15bf90b3e4ba185bc6.tar.xz host.fuwn.me-46ec3f716880a18c88e1fd15bf90b3e4ba185bc6.zip | |
fix: normalize url and thumbnail response
Diffstat (limited to 'src/api/utils/Util.js')
| -rw-r--r-- | src/api/utils/Util.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/api/utils/Util.js b/src/api/utils/Util.js index 2b8a722..ae13eb5 100644 --- a/src/api/utils/Util.js +++ b/src/api/utils/Util.js @@ -214,7 +214,8 @@ class Util { name: exists.name, hash: exists.hash, size: exists.size, - url: `${process.env.DOMAIN}/${exists.name}`, + url: exists.url, + thumb: exists.thumb, deleteUrl: `${process.env.DOMAIN}/api/file/${exists.id}`, repeated: true }); |