diff --git a/public/images/cover-default.png b/public/images/cover-default.png new file mode 100644 index 0000000000..8b1d392408 Binary files /dev/null and b/public/images/cover-default.png differ diff --git a/src/groups.js b/src/groups.js index 4e4656dd3a..a3799b4bcf 100644 --- a/src/groups.js +++ b/src/groups.js @@ -196,7 +196,12 @@ var async = require('async'), return callback(err); } - // results.base.image = internals.fixImageUrl(results.base.image); + // Default image + if (!results.base['cover:url']) { + results.base['cover:url'] = nconf.get('relative_path') + '/images/cover-default.png'; + results.base['cover:position'] = '50% 50%'; + } + results.base.members = results.users.filter(Boolean); results.base.pending = results.pending.filter(Boolean); results.base.count = numUsers || results.base.members.length;