summaryrefslogtreecommitdiffstats
path: root/app/core/files.js
diff options
context:
space:
mode:
authorHoussam Haidar <houssam@sdelements.com>2015-03-02 15:59:43 -0500
committerHoussam Haidar <houssam@sdelements.com>2015-03-02 16:00:20 -0500
commit75767d4c902632741b3410596eb17c312438c7ae (patch)
tree077b685912c6e44ec182096e4de371f86665e146 /app/core/files.js
parentbd904afe98b9a499437c8a2f6f78ea17c1c8c34a (diff)
downloadlets-chat-75767d4c902632741b3410596eb17c312438c7ae.zip
lets-chat-75767d4c902632741b3410596eb17c312438c7ae.tar.gz
lets-chat-75767d4c902632741b3410596eb17c312438c7ae.tar.bz2
Fix undefined room in notifications
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 9b3f1c8..f9ef61d 100644
--- a/app/core/files.js
+++ b/app/core/files.js
@@ -127,7 +127,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');