Fix up PR issues

This commit is contained in:
Kaity A 2023-05-07 22:07:40 +10:00
parent 1b5d2084d8
commit 9e8110b7bc
No known key found for this signature in database
GPG Key ID: 5A797B97C2A490AD
2 changed files with 12 additions and 26 deletions

View File

@ -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,

View File

@ -61,12 +61,6 @@ export function getNoteMenu(props: {
} }
function edit(): void { function edit(): void {
os.confirm({
type: "info",
text: "This feature is experimental, please be careful and report bugs if you find them to @supakaity@blahaj.zone.",
}).then(({ canceled }) => {
if (canceled) return;
os.post({ os.post({
initialNote: appearNote, initialNote: appearNote,
renote: appearNote.renote, renote: appearNote.renote,
@ -74,23 +68,15 @@ export function getNoteMenu(props: {
channel: appearNote.channel, channel: appearNote.channel,
editId: appearNote.id, editId: appearNote.id,
}); });
});
} }
function duplicate(): void { function duplicate(): void {
os.confirm({
type: "info",
text: "This feature is experimental, please be careful and report bugs if you find them to @supakaity@blahaj.zone.",
}).then(({ canceled }) => {
if (canceled) return;
os.post({ os.post({
initialNote: appearNote, initialNote: appearNote,
renote: appearNote.renote, renote: appearNote.renote,
reply: appearNote.reply, reply: appearNote.reply,
channel: appearNote.channel, channel: appearNote.channel,
}); });
});
} }
function toggleFavorite(favorite: boolean): void { function toggleFavorite(favorite: boolean): void {