1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-06-12 07:03:59 +02:00

fix(backend): fix streaming note hiding logic (#17248)

* fix(backend): fix streaming note hiding logic

* Update Changelog

* refactor: avoid using generator function

---------

Co-authored-by: Acid Chicken <root@acid-chicken.com>
This commit is contained in:
かっこかり
2026-03-20 14:01:27 +09:00
committed by GitHub
parent f16ef2ef56
commit 2904b5a342
11 changed files with 72 additions and 118 deletions

View File

@@ -44,7 +44,7 @@ export class RoleTimelineChannel extends Channel {
@bindThis
private async onEvent(data: GlobalEvents['roleTimeline']['payload']) {
if (data.type === 'note') {
const note = data.body;
let note = data.body;
if (!(await this.roleservice.isExplorable({ id: this.roleId }))) {
return;
@@ -56,8 +56,9 @@ export class RoleTimelineChannel extends Channel {
if (this.isNoteMutedOrBlocked(note)) return;
const { shouldSkip } = await this.noteStreamingHidingService.processHiding(note, this.user?.id ?? null);
if (shouldSkip) return;
const filtered = await this.noteStreamingHidingService.filter(note, this.user?.id ?? null);
if (!filtered) return;
note = filtered;
if (this.user) {
if (isRenotePacked(note) && !isQuotePacked(note)) {