summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-06-24 16:09:41 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-06-24 16:09:41 +0900
commita77f67fc320d8581be23825dbd368e723db7cc74 (patch)
tree7a7a6c028000d318f2a5edf23c9ce49b50712174 /src
parent4.13.0 (diff)
downloadsharkey-a77f67fc320d8581be23825dbd368e723db7cc74.tar.gz
sharkey-a77f67fc320d8581be23825dbd368e723db7cc74.tar.bz2
sharkey-a77f67fc320d8581be23825dbd368e723db7cc74.zip
4.13.1
Diffstat (limited to 'src')
-rw-r--r--src/services/note/create.ts6
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