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 = () => {