From d99056304a0538fa225a61a3f5568ce5d3f997af Mon Sep 17 00:00:00 2001 From: syuilo⭐️ Date: Wed, 22 Feb 2017 20:32:03 +0900 Subject: Update timeline-post.tag --- src/web/app/mobile/tags/timeline-post.tag | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/web') diff --git a/src/web/app/mobile/tags/timeline-post.tag b/src/web/app/mobile/tags/timeline-post.tag index ec3a42243f..9da25b7b2f 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 = () => { -- cgit v1.2.3-freya