Made it easier to edit avatars

This commit is contained in:
2019-09-06 09:15:49 +09:00
parent 49547cc3b8
commit ca21bd5df0
7 changed files with 54 additions and 27 deletions

View File

@ -60,9 +60,8 @@ var avatarOutputs = []imageserver.Output{
// UserAvatar ...
type UserAvatar struct {
Extension string `json:"extension"`
Source string `json:"source"`
LastModified int64 `json:"lastModified"`
Extension string `json:"extension" editable:"true"`
LastModified int64 `json:"lastModified" editable:"true"`
}
// SetImageBytes accepts a byte buffer that represents an image file and updates the avatar.