1
0
mirror of https://github.com/h3poteto/whalebird-desktop synced 2025-01-19 04:10:19 +01:00

Merge pull request #400 from h3poteto/iss-385

fixes #385 Allow video to post toot
This commit is contained in:
AkiraFukushima 2018-06-16 22:51:39 +09:00 committed by GitHub
commit 302ace1298
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,7 +93,7 @@ const NewToot = {
return client.post('/media', formData)
.then(data => {
commit('changeBlockSubmit', false)
if (data.type !== 'image') throw new UnknownTypeError()
if (data.type === 'unknown') throw new UnknownTypeError()
commit('appendAttachedMedias', data)
return data
})