fixed gravatar default image
This commit is contained in:
parent
f6b0e63751
commit
3deb536323
@ -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}`;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user