$commentauthor = $commentuser;
}
- eval 'use Libravatar::URL';
-
- if (! $@) {
- 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});
- }
- }
+ eval 'use Libravatar::URL';
+ if (! $@) {
+ 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});
+ }
+ }
}
else {
if (defined $params{ip}) {
my $url=$params{url};
eval q{use URI::Heuristic};
- if (! $@) {
+ if (! $@) {
$url=URI::Heuristic::uf_uristr($url);
}