fixed missing thumbnail issue
This commit is contained in:
parent
738a517738
commit
616d873508
1 changed files with 4 additions and 2 deletions
|
@ -58,8 +58,10 @@ function determineOgDescription (storedDescription, defaultDescription) {
|
||||||
};
|
};
|
||||||
|
|
||||||
function determineOgThumbnailContentType (thumbnail) {
|
function determineOgThumbnailContentType (thumbnail) {
|
||||||
if (thumbnail.lastIndexOf('.') !== -1) {
|
if (thumbnail) {
|
||||||
return determineContentTypeFromFileExtension(thumbnail.substring(thumbnail.lastIndexOf('.')));
|
if (thumbnail.lastIndexOf('.') !== -1) {
|
||||||
|
return determineContentTypeFromFileExtension(thumbnail.substring(thumbnail.lastIndexOf('.')));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue