1
0
mirror of https://github.com/dap-ps/discover.git synced 2025-01-31 03:26:13 +00:00

don't save images with full URL, just path is enough

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-12-12 10:46:08 +01:00
parent bf8b9bcbad
commit 54a4c1ddc2
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020

View File

@ -24,7 +24,7 @@ class DAppImageService {
}
const buildImageUrl = function (req, imageHash) {
return `${req.protocol}://${req.headers.host}${req.originalUrl}/image/${imageHash}`;
return `/metadata/image/${imageHash}`;
}
module.exports = DAppImageService;