forked from GNUsocial/gnu-social
Use https for gravatars
No reason not to use https, and doing so prevents mixed content warnings when the avatars are used on https pages.
This commit is contained in:
parent
5476ffa944
commit
bc6a61dc89
@ -183,7 +183,7 @@ class GravatarPlugin extends Plugin
|
|||||||
|
|
||||||
function gravatar_url($email, $size)
|
function gravatar_url($email, $size)
|
||||||
{
|
{
|
||||||
$url = "http://www.gravatar.com/avatar.php?gravatar_id=".
|
$url = "https://secure.gravatar.com/avatar.php?gravatar_id=".
|
||||||
md5(strtolower($email)).
|
md5(strtolower($email)).
|
||||||
"&default=".urlencode(Avatar::defaultImage($size)).
|
"&default=".urlencode(Avatar::defaultImage($size)).
|
||||||
"&size=".$size;
|
"&size=".$size;
|
||||||
|
Loading…
Reference in New Issue
Block a user