From d99056304a0538fa225a61a3f5568ce5d3f997af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?syuilo=E2=AD=90=EF=B8=8F?= Date: Wed, 22 Feb 2017 20:32:03 +0900 Subject: [PATCH] Update timeline-post.tag --- src/web/app/mobile/tags/timeline-post.tag | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/web/app/mobile/tags/timeline-post.tag b/src/web/app/mobile/tags/timeline-post.tag index ec3a42243..9da25b7b2 100644 --- a/src/web/app/mobile/tags/timeline-post.tag +++ b/src/web/app/mobile/tags/timeline-post.tag @@ -335,12 +335,11 @@ this.repost = () => { const text = window.prompt(`「${this.summary}」をRepost`); - if (text) { - this.api('posts/create', { - repost_id: this.p.id, - text: text == '' ? undefined : text - }); - } + if (text == null) return; + this.api('posts/create', { + repost_id: this.p.id, + text: text == '' ? undefined : text + }); }; this.like = () => {