mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2025-01-31 09:35:16 +01:00
Merge pull request #400 from h3poteto/iss-385
fixes #385 Allow video to post toot
This commit is contained in:
commit
302ace1298
@ -93,7 +93,7 @@ const NewToot = {
|
|||||||
return client.post('/media', formData)
|
return client.post('/media', formData)
|
||||||
.then(data => {
|
.then(data => {
|
||||||
commit('changeBlockSubmit', false)
|
commit('changeBlockSubmit', false)
|
||||||
if (data.type !== 'image') throw new UnknownTypeError()
|
if (data.type === 'unknown') throw new UnknownTypeError()
|
||||||
commit('appendAttachedMedias', data)
|
commit('appendAttachedMedias', data)
|
||||||
return data
|
return data
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user