Use the same method everywhere to calculate the avatar url
This commit is contained in:
parent
783401723a
commit
05da96e545
5 changed files with 11 additions and 18 deletions
|
|
@ -17,4 +17,8 @@ export default class UserModel extends AbstractModel {
|
|||
updated: null,
|
||||
}
|
||||
}
|
||||
|
||||
getAvatarUrl(size = 50) {
|
||||
return `https://www.gravatar.com/avatar/${this.avatarUrl}?s=${size}&d=mp`
|
||||
}
|
||||
}
|
||||
Reference in a new issue