summaryrefslogtreecommitdiff
path: root/src/web/app/mobile
diff options
context:
space:
mode:
authorsyuilo⭐️ <Syuilotan@yahoo.co.jp>2017-02-22 20:32:03 +0900
committersyuilo⭐️ <Syuilotan@yahoo.co.jp>2017-02-22 20:32:03 +0900
commitd99056304a0538fa225a61a3f5568ce5d3f997af (patch)
tree7b48307dd53fc9ab5cc1b557e646db84cec63299 /src/web/app/mobile
parentBetter README (diff)
downloadmisskey-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.tag11
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 = () => {