diff --git a/src/renderer/components/TimelineSpace/Compose.vue b/src/renderer/components/TimelineSpace/Compose.vue
index 211c3111..33a09a19 100644
--- a/src/renderer/components/TimelineSpace/Compose.vue
+++ b/src/renderer/components/TimelineSpace/Compose.vue
@@ -16,7 +16,7 @@
- -
+
-
maxStatusChars.value) {
+ ElMessage({
+ message: i18n.t('validation.compose.toot_length', {
+ min: 1,
+ max: maxStatusChars.value
+ }),
+ type: 'error'
+ })
+ return
+ }
+ if (attachments.value.length > 4) {
+ ElMessage({
+ message: i18n.t('validation.compose.attach_length', {
+ max: 4
+ }),
+ type: 'error'
+ })
+ return
+ }
+ if (poll.options.length > 0) {
+ let mes: Array = []
+ poll.options.forEach(option => {
+ if (option.length < 1) {
+ mes = [
+ ...mes,
+ {
+ message: i18n.t('validation.compose.poll_invalid'),
+ type: 'error'
+ }
+ ]
+ }
+ })
+ if (mes.length > 0) {
+ ElMessage(mes[0])
+ return
+ }
+ }
+
+ // Post
let options = {
visibility: visibility.value
}