Skip to content

Commit

Permalink
feat: allow custom gravatar endpoints (#217)
Browse files Browse the repository at this point in the history
* add custom gravatar registry env

* add default val

* use gravatar.com as default val
  • Loading branch information
AkariRin authored Aug 16, 2024
1 parent aa54464 commit 742cceb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/gravatar/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
}

$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";
});
};

0 comments on commit 742cceb

Please sign in to comment.