diff options
| author | syuilo⭐️ <Syuilotan@yahoo.co.jp> | 2017-02-22 20:32:03 +0900 |
|---|---|---|
| committer | syuilo⭐️ <Syuilotan@yahoo.co.jp> | 2017-02-22 20:32:03 +0900 |
| commit | d99056304a0538fa225a61a3f5568ce5d3f997af (patch) | |
| tree | 7b48307dd53fc9ab5cc1b557e646db84cec63299 /src/web/app/mobile | |
| parent | Better README (diff) | |
| download | misskey-d99056304a0538fa225a61a3f5568ce5d3f997af.tar.gz misskey-d99056304a0538fa225a61a3f5568ce5d3f997af.tar.bz2 misskey-d99056304a0538fa225a61a3f5568ce5d3f997af.zip | |
Update timeline-post.tag
Diffstat (limited to 'src/web/app/mobile')
| -rw-r--r-- | src/web/app/mobile/tags/timeline-post.tag | 11 |
1 files 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 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 = () => { |