Skip to content

Commit

Permalink
fix: #7613
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed May 16, 2019
1 parent 9998e86 commit 15ce23d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/coverPhoto.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 15ce23d

Please sign in to comment.