This commit is contained in:
Barış Soner Uşaklı
2019-05-16 10:49:40 -04:00
parent 9998e86b3b
commit 15ce23da4c

View File

@@ -28,8 +28,8 @@ function getCover(type, id) {
} else {
id %= covers.length;
}
if (covers[id] && !covers[id].startsWith('http')) {
coverPhoto = nconf.get('relative_path') + covers[id];
if (covers[id]) {
coverPhoto = covers[id].startsWith('http') ? covers[id] : (nconf.get('relative_path') + covers[id]);
}
return coverPhoto;
}