1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-03 10:16:10 +02:00

enhance(frontend): improve plugin management

This commit is contained in:
syuilo
2025-03-09 21:23:36 +09:00
parent 6cefabc6b6
commit 0402866b43
8 changed files with 131 additions and 144 deletions

View File

@@ -24,7 +24,7 @@ import { isSupportShare } from '@/utility/navigator.js';
import { getAppearNote } from '@/utility/get-appear-note.js';
import { genEmbedCode } from '@/utility/get-embed-code.js';
import { prefer } from '@/preferences.js';
import { noteActions } from '@/plugin.js';
import { getPluginHandlers } from '@/plugin.js';
export async function getNoteClipMenu(props: {
note: Misskey.entities.Note;
@@ -497,6 +497,7 @@ export function getNoteMenu(props: {
}
}
const noteActions = getPluginHandlers('note_action');
if (noteActions.length > 0) {
menuItems.push({ type: 'divider' });