From a704a461811c2703aaf4fcad12674e741a55be3b Mon Sep 17 00:00:00 2001
From: AkiraFukushima
Date: Sat, 16 Jun 2018 16:59:42 +0900
Subject: [PATCH] fixes #385 Allow video to post toot
---
src/renderer/store/TimelineSpace/Modals/NewToot.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/renderer/store/TimelineSpace/Modals/NewToot.js b/src/renderer/store/TimelineSpace/Modals/NewToot.js
index f3cd7f15..df79e4e9 100644
--- a/src/renderer/store/TimelineSpace/Modals/NewToot.js
+++ b/src/renderer/store/TimelineSpace/Modals/NewToot.js
@@ -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
})