v1.18.x
Barış Soner Uşaklı 6 years ago
parent 9998e86b3b
commit 15ce23da4c

@ -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;
} }

Loading…
Cancel
Save