Fix up PR issues
This commit is contained in:
parent
1b5d2084d8
commit
9e8110b7bc
2 changed files with 12 additions and 26 deletions
|
@ -88,7 +88,7 @@ const renote = async (viaKeyboard = false, ev?: MouseEvent) => {
|
||||||
|
|
||||||
if (
|
if (
|
||||||
props.note.visibility === "public" ||
|
props.note.visibility === "public" ||
|
||||||
props.note.visibil ity === "hidden"
|
props.note.visibility === "hidden"
|
||||||
) {
|
) {
|
||||||
buttonActions.push({
|
buttonActions.push({
|
||||||
text: i18n.ts.renote,
|
text: i18n.ts.renote,
|
||||||
|
|
|
@ -61,35 +61,21 @@ export function getNoteMenu(props: {
|
||||||
}
|
}
|
||||||
|
|
||||||
function edit(): void {
|
function edit(): void {
|
||||||
os.confirm({
|
os.post({
|
||||||
type: "info",
|
initialNote: appearNote,
|
||||||
text: "This feature is experimental, please be careful and report bugs if you find them to @supakaity@blahaj.zone.",
|
renote: appearNote.renote,
|
||||||
}).then(({ canceled }) => {
|
reply: appearNote.reply,
|
||||||
if (canceled) return;
|
channel: appearNote.channel,
|
||||||
|
editId: appearNote.id,
|
||||||
os.post({
|
|
||||||
initialNote: appearNote,
|
|
||||||
renote: appearNote.renote,
|
|
||||||
reply: appearNote.reply,
|
|
||||||
channel: appearNote.channel,
|
|
||||||
editId: appearNote.id,
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function duplicate(): void {
|
function duplicate(): void {
|
||||||
os.confirm({
|
os.post({
|
||||||
type: "info",
|
initialNote: appearNote,
|
||||||
text: "This feature is experimental, please be careful and report bugs if you find them to @supakaity@blahaj.zone.",
|
renote: appearNote.renote,
|
||||||
}).then(({ canceled }) => {
|
reply: appearNote.reply,
|
||||||
if (canceled) return;
|
channel: appearNote.channel,
|
||||||
|
|
||||||
os.post({
|
|
||||||
initialNote: appearNote,
|
|
||||||
renote: appearNote.renote,
|
|
||||||
reply: appearNote.reply,
|
|
||||||
channel: appearNote.channel,
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue