From c2987beb312644dea6191f259351832485537c88 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 11 Jan 2021 18:02:21 +0100 Subject: [PATCH] Fix group avatar upload Close #549 Signed-off-by: Thomas Citharel --- js/src/views/Group/Create.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/views/Group/Create.vue b/js/src/views/Group/Create.vue index b0517fe97..ab61f3efa 100644 --- a/js/src/views/Group/Create.vue +++ b/js/src/views/Group/Create.vue @@ -166,7 +166,7 @@ export default class CreateGroup extends mixins(IdentityEditionMixin) { if (this.avatarFile) { avatarObj = { avatar: { - picture: { + media: { name: this.avatarFile.name, alt: `${this.group.preferredUsername}'s avatar`, file: this.avatarFile, @@ -178,7 +178,7 @@ export default class CreateGroup extends mixins(IdentityEditionMixin) { if (this.bannerFile) { bannerObj = { banner: { - picture: { + media: { name: this.bannerFile.name, alt: `${this.group.preferredUsername}'s banner`, file: this.bannerFile,