]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/comments.pm
comments: serve avatars over https in https wikis
[ikiwiki.git] / 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) {
                     my $email = IkiWiki::userinfo_get($commentuser, 'email');
 
                     if (defined $email) {
-                        $commentauthoravatar = libravatar_url(email => $email);
+                        $commentauthoravatar = libravatar_url(email => $email, https => $ENV{HTTPS});
                     }
                 }
        }
                     }
                 }
        }