cleanup for show-note-on-original-instance fixes

This commit is contained in:
bunnybeam 2025-10-26 11:44:21 +00:00
parent 7c92c2215d
commit 3c3a7b6cbb
No known key found for this signature in database
5 changed files with 11 additions and 11 deletions

View file

@ -25,7 +25,7 @@ import { getAppearNote } from '@/utility/get-appear-note.js';
import { genEmbedCode } from '@/utility/get-embed-code.js';
import { prefer } from '@/preferences.js';
import { getPluginHandlers } from '@/plugin.js';
import { showOnRemote } from '@/utility/show-on-remote.js';
import { showNoteOnOriginalInstance } from '@/utility/show-note-on-original-instance.js';
export async function getNoteClipMenu(props: {
note: Misskey.entities.Note;
@ -360,7 +360,7 @@ export function getNoteMenu(props: {
icon: 'ti ti-external-link',
text: i18n.ts.showOnRemote,
action: () => {
showOnRemote(appearNote);
showNoteOnOriginalInstance(appearNote);
},
});
} else {
@ -549,7 +549,7 @@ export function getNoteMenu(props: {
icon: 'ti ti-external-link',
text: i18n.ts.showOnRemote,
action: () => {
showOnRemote(appearNote);
showNoteOnOriginalInstance(appearNote);
},
});
} else {

View file

@ -13,7 +13,7 @@ const router = useRouter();
/**
* Show a note on the remote instance, if possible. Otherwise, show the local note.
*/
export function showOnRemote(note: entities.Note) {
export function showNoteOnOriginalInstance(note: entities.Note) {
const remoteUrl = note.url ?? note.uri;
if (remoteUrl) {
warningExternalWebsite(remoteUrl);