diff options
Diffstat (limited to 'IkiWiki')
-rwxr-xr-x | IkiWiki/Plugin/comments.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm index fcce6c5a6..cb0196728 100755 --- a/IkiWiki/Plugin/comments.pm +++ b/IkiWiki/Plugin/comments.pm @@ -191,15 +191,17 @@ sub preprocess { eval q{use Libravatar::URL}; if (! $@) { + my $https=defined $config{url} && $config{url}=~/^https:/; + if (defined $commentopenid) { eval { - $commentauthoravatar = libravatar_url(openid => $commentopenid, https => $ENV{HTTPS}); + $commentauthoravatar = libravatar_url(openid => $commentopenid, https => $https); } } if (! defined $commentauthoravatar && (my $email = IkiWiki::userinfo_get($commentuser, 'email'))) { eval { - $commentauthoravatar = libravatar_url(email => $email, https => $ENV{HTTPS}); + $commentauthoravatar = libravatar_url(email => $email, https => $https); } } } |