fix(frontend): disable note_view_interruptor temporary to prevent rendering glitch
This commit is contained in:
parent
b16a05b9a7
commit
63e8935c86
|
@ -1,5 +1,8 @@
|
|||
## 2025.6.1
|
||||
|
||||
### Note
|
||||
- Misskey Webプラグインのnote_view_interruptorは不具合の影響により現在一時的に無効化されています。
|
||||
|
||||
### General
|
||||
-
|
||||
|
||||
|
|
|
@ -265,19 +265,21 @@ const currentClip = inject<Ref<Misskey.entities.Clip> | null>('currentClip', nul
|
|||
|
||||
let note = deepClone(props.note);
|
||||
|
||||
// plugin
|
||||
const noteViewInterruptors = getPluginHandlers('note_view_interruptor');
|
||||
if (noteViewInterruptors.length > 0) {
|
||||
let result: Misskey.entities.Note | null = deepClone(note);
|
||||
for (const interruptor of noteViewInterruptors) {
|
||||
try {
|
||||
result = await interruptor.handler(result!) as Misskey.entities.Note | null;
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
}
|
||||
}
|
||||
note = result as Misskey.entities.Note;
|
||||
}
|
||||
// コンポーネント初期化に非同期的な処理を行うとTransitionのレンダリングがバグるため同期的に実行できるメソッドが実装されるのを待つ必要がある
|
||||
// https://github.com/aiscript-dev/aiscript/issues/937
|
||||
//// plugin
|
||||
//const noteViewInterruptors = getPluginHandlers('note_view_interruptor');
|
||||
//if (noteViewInterruptors.length > 0) {
|
||||
// let result: Misskey.entities.Note | null = deepClone(note);
|
||||
// for (const interruptor of noteViewInterruptors) {
|
||||
// try {
|
||||
// result = await interruptor.handler(result!) as Misskey.entities.Note | null;
|
||||
// } catch (err) {
|
||||
// console.error(err);
|
||||
// }
|
||||
// }
|
||||
// note = result as Misskey.entities.Note;
|
||||
//}
|
||||
|
||||
const isRenote = Misskey.note.isPureRenote(note);
|
||||
const appearNote = getAppearNote(note);
|
||||
|
|
|
@ -286,19 +286,20 @@ const inChannel = inject('inChannel', null);
|
|||
|
||||
let note = deepClone(props.note);
|
||||
|
||||
// plugin
|
||||
const noteViewInterruptors = getPluginHandlers('note_view_interruptor');
|
||||
if (noteViewInterruptors.length > 0) {
|
||||
let result: Misskey.entities.Note | null = deepClone(note);
|
||||
for (const interruptor of noteViewInterruptors) {
|
||||
try {
|
||||
result = await interruptor.handler(result!) as Misskey.entities.Note | null;
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
}
|
||||
}
|
||||
note = result as Misskey.entities.Note;
|
||||
}
|
||||
// コンポーネント初期化に非同期的な処理を行うとTransitionのレンダリングがバグるため同期的に実行できるメソッドが実装されるのを待つ必要がある
|
||||
//// plugin
|
||||
//const noteViewInterruptors = getPluginHandlers('note_view_interruptor');
|
||||
//if (noteViewInterruptors.length > 0) {
|
||||
// let result: Misskey.entities.Note | null = deepClone(note);
|
||||
// for (const interruptor of noteViewInterruptors) {
|
||||
// try {
|
||||
// result = await interruptor.handler(result!) as Misskey.entities.Note | null;
|
||||
// } catch (err) {
|
||||
// console.error(err);
|
||||
// }
|
||||
// }
|
||||
// note = result as Misskey.entities.Note;
|
||||
//}
|
||||
|
||||
const isRenote = Misskey.note.isPureRenote(note);
|
||||
const appearNote = getAppearNote(note);
|
||||
|
|
Loading…
Reference in New Issue