Merge branch 'io' into merge-upstream

This commit is contained in:
riku6460
2023-10-18 00:12:57 +09:00
8 changed files with 52 additions and 13 deletions

View File

@@ -46,6 +46,19 @@ class RoleTimelineChannel extends Channel {
}
if (note.visibility !== 'public') return;
// リプライなら再pack
if (note.replyId != null) {
note.reply = await this.noteEntityService.pack(note.replyId, this.user, {
detail: true,
});
}
// Renoteなら再pack
if (note.renoteId != null) {
note.renote = await this.noteEntityService.pack(note.renoteId, this.user, {
detail: true,
});
}
// 流れてきたNoteがミュートしているユーザーが関わるものだったら無視する
if (isUserRelated(note, this.userIdsWhoMeMuting)) return;
// 流れてきたNoteがブロックされているユーザーが関わるものだったら無視する