diff options
author | Lauri Ojansivu <x@xet7.org> | 2019-05-09 14:32:38 +0300 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2019-05-09 14:32:38 +0300 |
commit | 64ee60a008c929dcf63ac5d2c49f7f189508a757 (patch) | |
tree | 5a05b4ef4cc146eff7c710d64ef4c33e3b166b75 /models/export.js | |
parent | 434ed895eddb3836add1e23f0382cf0c5d3b9978 (diff) | |
download | wekan-64ee60a008c929dcf63ac5d2c49f7f189508a757.tar.gz wekan-64ee60a008c929dcf63ac5d2c49f7f189508a757.tar.bz2 wekan-64ee60a008c929dcf63ac5d2c49f7f189508a757.zip |
Fix missing profile checks.
Thanks to justinr1234 !
Diffstat (limited to 'models/export.js')
-rw-r--r-- | models/export.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/export.js b/models/export.js index 49aac828..4f17d727 100644 --- a/models/export.js +++ b/models/export.js @@ -172,7 +172,7 @@ export class Exporter { }; result.users = Users.find(byUserIds, userFields).fetch().map((user) => { // user avatar is stored as a relative url, we export absolute - if (user.profile.avatarUrl) { + if ((user.profile || {}).avatarUrl) { user.profile.avatarUrl = FlowRouter.url(user.profile.avatarUrl); } return user; |