diff options
Diffstat (limited to 'src/services/note/create.ts')
| -rw-r--r-- | src/services/note/create.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/services/note/create.ts b/src/services/note/create.ts index 7e2fb4ff6a..a793c8e580 100644 --- a/src/services/note/create.ts +++ b/src/services/note/create.ts @@ -26,9 +26,9 @@ type Type = 'reply' | 'renote' | 'quote' | 'mention'; */ class NotificationManager { private notifier: IUser; - private note: any; + private note: INote; - constructor(notifier: IUser, note: any) { + constructor(notifier: IUser, note: INote) { this.notifier = notifier; this.note = note; } @@ -192,7 +192,7 @@ export default async (user: IUser, data: { // Serialize const noteObj = await pack(note); - const nm = new NotificationManager(user, noteObj); + const nm = new NotificationManager(user, note); const render = async () => { const content = data.renote && data.text == null |