summaryrefslogtreecommitdiffstats
path: root/app/core/files.js
diff options
context:
space:
mode:
authorSimon Bartlett <simon@securitycompass.com>2015-03-26 16:11:18 -0400
committerSimon Bartlett <simon@securitycompass.com>2015-03-26 16:11:18 -0400
commitd50b07dfc9e53c18b5101408e88d273140217bf2 (patch)
tree9f1289945c9f6a9bcf57c8cfb84a3fb28bdd2107 /app/core/files.js
parent553dc64ddd6380e82081b40fe869d8b49531cc5c (diff)
parentc1fff828bf3ff3b05f06410339122aedd1f098f3 (diff)
downloadlets-chat-d50b07dfc9e53c18b5101408e88d273140217bf2.zip
lets-chat-d50b07dfc9e53c18b5101408e88d273140217bf2.tar.gz
lets-chat-d50b07dfc9e53c18b5101408e88d273140217bf2.tar.bz2
Merge branch 'master' into develop
Diffstat (limited to 'app/core/files.js')
-rw-r--r--app/core/files.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/core/files.js b/app/core/files.js
index 3d8662a..a271785 100644
--- a/app/core/files.js
+++ b/app/core/files.js
@@ -129,7 +129,7 @@ FileManager.prototype.list = function(options, cb) {
}
if (options.expand) {
- var includes = options.expand.split(',');
+ var includes = options.expand.replace(/\s/, '').split(',');
if (_.includes(includes, 'owner')) {
find.populate('owner', 'id username displayName email avatar');