From: Francois Marier Date: Thu, 24 Mar 2011 08:08:51 +0000 (+1300) Subject: comments: serve avatars over https in https wikis X-Git-Tag: 3.20110430~127^2~1 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/83056abb8788e55041f2ea535236afd20736a659 comments: serve avatars over https in https wikis --- diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm index 00ab1c8bd..2f2a515b9 100755 --- a/IkiWiki/Plugin/comments.pm +++ b/IkiWiki/Plugin/comments.pm @@ -195,7 +195,7 @@ sub preprocess { my $email = IkiWiki::userinfo_get($commentuser, 'email'); if (defined $email) { - $commentauthoravatar = libravatar_url(email => $email); + $commentauthoravatar = libravatar_url(email => $email, https => $ENV{HTTPS}); } } }