mirror of
https://github.com/bs-community/blessing-skin-plugins.git
synced 2025-01-07 03:06:43 +08:00
feat: allow custom gravatar endpoints (#217)
* add custom gravatar registry env * add default val * use gravatar.com as default val
This commit is contained in:
parent
aa54464a50
commit
742cceb463
@ -9,7 +9,8 @@ return function (Filter $filter) {
|
||||
}
|
||||
|
||||
$hashed = md5(strtolower(trim($user->email)));
|
||||
|
||||
return "https://www.gravatar.com/avatar/$hashed";
|
||||
$registry = env('GRAVATAR_REGISTRY', 'https://www.gravatar.com/avatar/');
|
||||
|
||||
return "$registry$hashed";
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user