mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 14:07:38 -07:00
fix
This commit is contained in:
parent
aab19bdd6a
commit
25af7982c9
1 changed files with 6 additions and 3 deletions
|
@ -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
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue