Fix condition

This commit is contained in:
taichan 2024-02-20 15:40:36 +09:00
parent f5ae6630bd
commit 823b7c3269
No known key found for this signature in database
GPG Key ID: CCE28623AFA24E9C
1 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ export class NotificationEntityService implements OnModuleInit {
): Promise<Packed<'Notification'>|null> {
const notification = src;
if (options.checkValidNotifier && !(await this.#isValidNotifier(notification, meId))) return null;
if (options.checkValidNotifier !== false && !(await this.#isValidNotifier(notification, meId))) return null;
const noteIfNeed = NOTE_REQUIRED_NOTIFICATION_TYPES.has(notification.type) && 'noteId' in notification ? (
hint?.packedNotes != null
@ -170,7 +170,7 @@ export class NotificationEntityService implements OnModuleInit {
): Promise<Packed<'Notification'>|null> {
const notification = src;
if ( options.checkValidNotifier && !(await this.#isValidNotifier(notification, meId))) return null;
if ( options.checkValidNotifier !== false && !(await this.#isValidNotifier(notification, meId))) return null;
const noteIfNeed = NOTE_REQUIRED_GROUPED_NOTIFICATION_TYPES.has(notification.type) && 'noteId' in notification ? (
hint?.packedNotes != null