don't save images with full URL, just path is enough (#56)

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-12-12 21:16:05 +01:00 committed by Andy Tudhope
parent db3535733d
commit 60f14bb2f3
1 changed files with 1 additions and 1 deletions

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;