mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: #7613
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user