Node.js based forum software built for the modern web
fix: #7613
Barış Soner Uşaklı15ce23da4c2a
diff --git a/src/coverPhoto.js b/src/coverPhoto.jsindex c1ceb31133..ab139393e0 100644--- a/src/coverPhoto.js+++ b/src/coverPhoto.js@@ -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;}