fix(widget): profile widget gravatar issue
This commit is contained in:
parent
a785bd3b84
commit
137cc047ce
|
@ -1,8 +1,8 @@
|
||||||
<% function avatar() {
|
<% function avatar() {
|
||||||
const avatar = get_config_from_obj(widget, 'avatar');
|
const avatar = get_config_from_obj(widget, 'avatar');
|
||||||
const gravatar = get_config_from_obj(widget, 'gravatar');
|
const gravatar_email = get_config_from_obj(widget, 'gravatar');
|
||||||
if (gravatar !== null) {
|
if (gravatar_email !== null) {
|
||||||
return gravatar(gravatar, 128);
|
return gravatar(gravatar_email, 128);
|
||||||
}
|
}
|
||||||
if (avatar !== null) {
|
if (avatar !== null) {
|
||||||
return url_for(avatar)
|
return url_for(avatar)
|
||||||
|
|
Loading…
Reference in New Issue