fixed gravatar default image
All checks were successful
Build / Build NPM Project (push) Successful in 14s
Build / Tag Version (push) Successful in 6s
Build / Publish (push) Successful in 7s

This commit is contained in:
Zakary Timson 2024-03-20 20:44:53 -04:00
parent f6b0e63751
commit 3deb536323

View File

@ -19,7 +19,7 @@ export function formEncode(data: any): string {
* @param {string} def Default image, can be a link or '404', see: https://docs.gravatar.com/general/images/ * @param {string} def Default image, can be a link or '404', see: https://docs.gravatar.com/general/images/
* @returns {string} Gravatar URL * @returns {string} Gravatar URL
*/ */
export function gravatar(email: string, def='md') { export function gravatar(email: string, def='mp') {
if(!email) return ''; if(!email) return '';
return `https://www.gravatar.com/avatar/${md5(email)}?d=${def}`; return `https://www.gravatar.com/avatar/${md5(email)}?d=${def}`;
} }