fix default cover on groups/list page

v1.18.x
psychobunny 9 years ago
parent a670f2facc
commit f385e13531

@ -403,10 +403,9 @@ var async = require('async'),
group.hidden = parseInt(group.hidden, 10) === 1;
group.system = parseInt(group.system, 10) === 1;
group.private = parseInt(group.private, 10) === 1;
if (!group['cover:url']) {
group['cover:url'] = nconf.get('relative_path') + '/images/cover-default.png';
group['cover:position'] = '50% 50%';
}
group['cover:url'] = group['cover:url'] || require('./coverPhoto').getDefaultGroupCover(group.name);
group['cover:position'] = group['cover:position'] || '50% 50%';
}
});

Loading…
Cancel
Save