1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-26 09:49:12 +00:00

Merge branch 'fix-group-avatar-upload' into 'master'

Fix group avatar upload

Closes #549

See merge request framasoft/mobilizon!781
This commit is contained in:
Thomas Citharel 2021-01-11 18:19:11 +01:00
commit 55a5910ef3

View file

@ -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,