summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/models/repositories/notification.ts2
-rw-r--r--src/services/create-notification.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/models/repositories/notification.ts b/src/models/repositories/notification.ts
index 1027155873..986ddb1d42 100644
--- a/src/models/repositories/notification.ts
+++ b/src/models/repositories/notification.ts
@@ -16,7 +16,7 @@ export class NotificationRepository extends Repository<Notification> {
public async pack(
src: Notification['id'] | Notification,
options: {
- _hintForEachNotes_: {
+ _hintForEachNotes_?: {
emojis: Emoji[] | null;
myReactions: Map<Note['id'], NoteReaction | null>;
};
diff --git a/src/services/create-notification.ts b/src/services/create-notification.ts
index 6cd116040a..dedb8eac8d 100644
--- a/src/services/create-notification.ts
+++ b/src/services/create-notification.ts
@@ -30,7 +30,7 @@ export async function createNotification(
...data
} as Partial<Notification>);
- const packed = await Notifications.pack(notification);
+ const packed = await Notifications.pack(notification, {});
// Publish notification event
publishMainStream(notifieeId, 'notification', packed);