From 9d5db86d3e568115f49edcfdcfbe1ab7e37c0926 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Thu, 2 Mar 2017 18:31:37 -0700 Subject: [PATCH 1/2] Fix NUA over SSH --- mods/menu.hjson | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/menu.hjson b/mods/menu.hjson index 75ceaa31..ef4c4455 100644 --- a/mods/menu.hjson +++ b/mods/menu.hjson @@ -341,6 +341,7 @@ // Canceling this form logs off vs falling back to matrix // newUserApplicationSsh: { + module: nua art: NUA fallback: logoff options: { From 3678908477fa7fd1f1786c6096961aee6f668f0c Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Thu, 2 Mar 2017 18:35:17 -0700 Subject: [PATCH 2/2] Don't crash if no user info --- mods/last_callers.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mods/last_callers.js b/mods/last_callers.js index 1ff6dbd8..72f97317 100644 --- a/mods/last_callers.js +++ b/mods/last_callers.js @@ -105,13 +105,16 @@ exports.getModule = class LastCallersModule extends MenuModule { item.ts = moment(item.timestamp).format(dateTimeFormat); User.getUserName(item.userId, (err, userName) => { - item.userName = userName; + item.userName = userName || 'N/A'; User.loadProperties(item.userId, getPropOpts, (err, props) => { if(!err) { item.location = props.location; item.affiliation = item.affils = props.affiliation; - } + } else { + item.location = 'N/A'; + item.affiliation = 'N/A'; + } return next(); }); });