cleanup for show-note-on-original-instance fixes
This commit is contained in:
parent
7c92c2215d
commit
3c3a7b6cbb
5 changed files with 11 additions and 11 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue