diff options
author | Houssam Haidar <houssam@sdelements.com> | 2015-03-02 15:59:43 -0500 |
---|---|---|
committer | Houssam Haidar <houssam@sdelements.com> | 2015-03-02 16:00:20 -0500 |
commit | 75767d4c902632741b3410596eb17c312438c7ae (patch) | |
tree | 077b685912c6e44ec182096e4de371f86665e146 /app/core/files.js | |
parent | bd904afe98b9a499437c8a2f6f78ea17c1c8c34a (diff) | |
download | lets-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.js | 2 |
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'); |