Don't barf if no info in m.file content
This commit is contained in:
parent
5bed0b7275
commit
a591b66732
1 changed files with 7 additions and 5 deletions
|
@ -24,11 +24,13 @@ module.exports = {
|
||||||
}
|
}
|
||||||
|
|
||||||
var additionals = [];
|
var additionals = [];
|
||||||
if (content.info.mimetype && content.info.mimetype.length > 0) {
|
if (content.info) {
|
||||||
additionals.push(content.info.mimetype);
|
if (content.info.mimetype && content.info.mimetype.length > 0) {
|
||||||
}
|
additionals.push(content.info.mimetype);
|
||||||
if (content.info.size && content.info.size.length > 0) {
|
}
|
||||||
additionals.push(filesize(content.info.size));
|
if (content.info.size && content.info.size.length > 0) {
|
||||||
|
additionals.push(filesize(content.info.size));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (additionals.length > 0) {
|
if (additionals.length > 0) {
|
||||||
|
|
Loading…
Reference in a new issue