From 4f2825fcc7f178c0a147d3768f2937fc2f8567dd Mon Sep 17 00:00:00 2001 From: Richie Bendall Date: Fri, 21 Jun 2019 16:11:45 +1200 Subject: [PATCH] fix: Fix error when no user specified in hostname Signed-off-by: Richie Bendall --- routes/get.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/get.js b/routes/get.js index 9a7447dd..2893d6c3 100644 --- a/routes/get.js +++ b/routes/get.js @@ -48,7 +48,7 @@ module.exports = (req, res) => { gravatar = `Profile image`; - } else if (typeof user.copyright[0] === 'object' && user.gravatar) { + } else if (user.copyright && typeof user.copyright[0] === 'object' && user.gravatar) { // Supports multi-user format gravatar = `