mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-27 02:10:27 +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:
commit
55a5910ef3
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue