This commit is contained in:
syuilo⭐️ 2017-03-10 02:09:18 +09:00 committed by GitHub
parent e5458992f6
commit 8927888174

View File

@ -408,14 +408,17 @@
}); });
this.reply = () => { this.reply = () => {
riot.mount(document.body.appendChild(document.createElement('mk-post-form-window')), { this.openPostForm({
reply: this.p reply: this.p
}); });
}; };
this.repost = () => { this.repost = () => {
riot.mount(document.body.appendChild(document.createElement('mk-repost-form-window')), { const text = window.prompt(`「${this.summary}」をRepost`);
post: this.p if (text == null) return;
this.api('posts/create', {
repost_id: this.p.id,
text: text == '' ? undefined : text
}); });
}; };