mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-11 08:32:47 +01:00
fix
This commit is contained in:
parent
e5458992f6
commit
8927888174
1 changed files with 6 additions and 3 deletions
|
@ -408,14 +408,17 @@
|
|||
});
|
||||
|
||||
this.reply = () => {
|
||||
riot.mount(document.body.appendChild(document.createElement('mk-post-form-window')), {
|
||||
this.openPostForm({
|
||||
reply: this.p
|
||||
});
|
||||
};
|
||||
|
||||
this.repost = () => {
|
||||
riot.mount(document.body.appendChild(document.createElement('mk-repost-form-window')), {
|
||||
post: this.p
|
||||
const text = window.prompt(`「${this.summary}」をRepost`);
|
||||
if (text == null) return;
|
||||
this.api('posts/create', {
|
||||
repost_id: this.p.id,
|
||||
text: text == '' ? undefined : text
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue