Fix group avatar upload

Close #549

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-01-11 18:02:21 +01:00
parent 71f5ed810c
commit c2987beb31
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -166,7 +166,7 @@ export default class CreateGroup extends mixins(IdentityEditionMixin) {
if (this.avatarFile) { if (this.avatarFile) {
avatarObj = { avatarObj = {
avatar: { avatar: {
picture: { media: {
name: this.avatarFile.name, name: this.avatarFile.name,
alt: `${this.group.preferredUsername}'s avatar`, alt: `${this.group.preferredUsername}'s avatar`,
file: this.avatarFile, file: this.avatarFile,
@ -178,7 +178,7 @@ export default class CreateGroup extends mixins(IdentityEditionMixin) {
if (this.bannerFile) { if (this.bannerFile) {
bannerObj = { bannerObj = {
banner: { banner: {
picture: { media: {
name: this.bannerFile.name, name: this.bannerFile.name,
alt: `${this.group.preferredUsername}'s banner`, alt: `${this.group.preferredUsername}'s banner`,
file: this.bannerFile, file: this.bannerFile,