feat(frontend): プラグインを用いて疑似的にミュートできるようにする (#12135)
* feat: mute note using plugin * Update CHANGELOG --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
This commit is contained in:
parent
481db8aba4
commit
e73e21851e
3 changed files with 8 additions and 3 deletions
|
@ -230,9 +230,11 @@ let note = $ref(deepClone(props.note));
|
|||
// plugin
|
||||
if (noteViewInterruptors.length > 0) {
|
||||
onMounted(async () => {
|
||||
let result = deepClone(note);
|
||||
let result:Misskey.entities.Note | null = deepClone(note);
|
||||
for (const interruptor of noteViewInterruptors) {
|
||||
result = await interruptor.handler(result);
|
||||
|
||||
if (result === null) return isDeleted.value = true;
|
||||
}
|
||||
note = result;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue