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 { } else {
id %= covers.length; id %= covers.length;
} }
if (covers[id] && !covers[id].startsWith('http')) { if (covers[id]) {
coverPhoto = nconf.get('relative_path') + covers[id]; coverPhoto = covers[id].startsWith('http') ? covers[id] : (nconf.get('relative_path') + covers[id]);
} }
return coverPhoto; return coverPhoto;
} }