1
0

Use the same method everywhere to calculate the avatar url

This commit is contained in:
kolaente
2020-02-09 13:28:33 +01:00
parent 783401723a
commit 05da96e545
5 changed files with 11 additions and 18 deletions

View File

@ -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`
}
}