mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 17:03:49 +01:00
fix bug
This commit is contained in:
parent
1abf4c5e31
commit
2860641f30
@ -16,7 +16,7 @@ export class NotificationRepository extends Repository<Notification> {
|
|||||||
public async pack(
|
public async pack(
|
||||||
src: Notification['id'] | Notification,
|
src: Notification['id'] | Notification,
|
||||||
options: {
|
options: {
|
||||||
_hintForEachNotes_: {
|
_hintForEachNotes_?: {
|
||||||
emojis: Emoji[] | null;
|
emojis: Emoji[] | null;
|
||||||
myReactions: Map<Note['id'], NoteReaction | null>;
|
myReactions: Map<Note['id'], NoteReaction | null>;
|
||||||
};
|
};
|
||||||
|
@ -30,7 +30,7 @@ export async function createNotification(
|
|||||||
...data
|
...data
|
||||||
} as Partial<Notification>);
|
} as Partial<Notification>);
|
||||||
|
|
||||||
const packed = await Notifications.pack(notification);
|
const packed = await Notifications.pack(notification, {});
|
||||||
|
|
||||||
// Publish notification event
|
// Publish notification event
|
||||||
publishMainStream(notifieeId, 'notification', packed);
|
publishMainStream(notifieeId, 'notification', packed);
|
||||||
|
Loading…
Reference in New Issue
Block a user