mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-25 07:36:18 +09:00
Fix up PR issues
This commit is contained in:
parent
80897d0a3c
commit
ba4e322dbf
@ -88,7 +88,7 @@ const renote = async (viaKeyboard = false, ev?: MouseEvent) => {
|
||||
|
||||
if (
|
||||
props.note.visibility === "public" ||
|
||||
props.note.visibil ity === "hidden"
|
||||
props.note.visibility === "hidden"
|
||||
) {
|
||||
buttonActions.push({
|
||||
text: i18n.ts.renote,
|
||||
|
@ -61,35 +61,21 @@ export function getNoteMenu(props: {
|
||||
}
|
||||
|
||||
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({
|
||||
initialNote: appearNote,
|
||||
renote: appearNote.renote,
|
||||
reply: appearNote.reply,
|
||||
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 {
|
||||
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({
|
||||
initialNote: appearNote,
|
||||
renote: appearNote.renote,
|
||||
reply: appearNote.reply,
|
||||
channel: appearNote.channel,
|
||||
});
|
||||
os.post({
|
||||
initialNote: appearNote,
|
||||
renote: appearNote.renote,
|
||||
reply: appearNote.reply,
|
||||
channel: appearNote.channel,
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user