]> sipb.mit.edu Git - ikiwiki.git/commitdiff
comments: serve avatars over https in https wikis
authorFrancois Marier <francois@debian.org>
Thu, 24 Mar 2011 08:08:51 +0000 (21:08 +1300)
committerFrancois Marier <francois@debian.org>
Wed, 30 Mar 2011 07:59:17 +0000 (20:59 +1300)
IkiWiki/Plugin/comments.pm

index 00ab1c8bdacda84e0ee12279074e14110e0f26d3..2f2a515b9be5c2c061e8f9c65d827e8119660f37 100755 (executable)
@@ -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});
                     }
                 }
        }