From 137cc047ced77f591a41e9d51877a2280ce6d189 Mon Sep 17 00:00:00 2001 From: ppoffice Date: Mon, 19 Nov 2018 00:43:24 -0500 Subject: [PATCH] fix(widget): profile widget gravatar issue --- layout/widget/profile.ejs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layout/widget/profile.ejs b/layout/widget/profile.ejs index 254af87..4150790 100644 --- a/layout/widget/profile.ejs +++ b/layout/widget/profile.ejs @@ -1,8 +1,8 @@ <% function avatar() { const avatar = get_config_from_obj(widget, 'avatar'); - const gravatar = get_config_from_obj(widget, 'gravatar'); - if (gravatar !== null) { - return gravatar(gravatar, 128); + const gravatar_email = get_config_from_obj(widget, 'gravatar'); + if (gravatar_email !== null) { + return gravatar(gravatar_email, 128); } if (avatar !== null) { return url_for(avatar)