normalize naming of isPackedPureRenote and PackedPureRenote

This commit is contained in:
Hazelnoot 2024-11-17 09:08:04 -05:00
parent faf1b3559a
commit 4b503f88e1
2 changed files with 4 additions and 4 deletions

View file

@ -16,7 +16,7 @@ import { bindThis } from '@/decorators.js';
import { DebounceLoader } from '@/misc/loader.js';
import { IdService } from '@/core/IdService.js';
import { ReactionsBufferingService } from '@/core/ReactionsBufferingService.js';
import { isPureRenotePacked } from '@/misc/is-renote.js';
import { isPackedPureRenote } from '@/misc/is-renote.js';
import type { OnModuleInit } from '@nestjs/common';
import type { CacheService } from '../CacheService.js';
import type { CustomEmojiService } from '../CustomEmojiService.js';
@ -139,7 +139,7 @@ export class NoteEntityService implements OnModuleInit {
// Otherwise we can have empty notes on the timeline, which is not good.
// Notes are packed in depth-first order, so we can safely grab the "isHidden" property to avoid duplicated checks.
// This is pulled out to ensure that we check both the renote *and* the boosted note.
if (packedNote.renote?.isHidden && isPureRenotePacked(packedNote)) {
if (packedNote.renote?.isHidden && isPackedPureRenote(packedNote)) {
hide = true;
}