Fix gravatar url

This commit is contained in:
kolaente 2020-02-18 19:11:25 +01:00
parent 09dda84d75
commit 683012f468
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -10,7 +10,7 @@ export default class UserModel extends AbstractModel {
defaults() { defaults() {
return { return {
id: 0, id: 0,
avatarUrl: '', avatar: '',
email: '', email: '',
username: '', username: '',
created: null, created: null,
@ -19,6 +19,6 @@ export default class UserModel extends AbstractModel {
} }
getAvatarUrl(size = 50) { getAvatarUrl(size = 50) {
return `https://www.gravatar.com/avatar/${this.avatarUrl}?s=${size}&d=mp` return `https://www.gravatar.com/avatar/${this.avatar}?s=${size}&d=mp`
} }
} }