summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
83056ab)
This requires version 1.04 or later of Libravatar::URL.
eval 'use Libravatar::URL';
if (! $@) {
eval 'use Libravatar::URL';
if (! $@) {
- my $email = IkiWiki::userinfo_get($commentuser, 'email');
-
- if (defined $email) {
+ if (defined $commentopenid) {
+ $commentauthoravatar = libravatar_url(openid => $commentopenid, https => $ENV{HTTPS});
+ }
+ elsif (my $email = IkiWiki::userinfo_get($commentuser, 'email')) {
$commentauthoravatar = libravatar_url(email => $email, https => $ENV{HTTPS});
}
}
$commentauthoravatar = libravatar_url(email => $email, https => $ENV{HTTPS});
}
}