diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-03-29 17:46:31 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-03-29 17:46:31 +0900 |
| commit | cc66a1f9c7733f0ff3c23b60a8578cdb1235a3f2 (patch) | |
| tree | e7e7697fcfc2ec63c642e5496030bdd46f87601b /src/server/api/stream | |
| parent | Merge branch 'develop' (diff) | |
| parent | 12.28.0 (diff) | |
| download | misskey-cc66a1f9c7733f0ff3c23b60a8578cdb1235a3f2.tar.gz misskey-cc66a1f9c7733f0ff3c23b60a8578cdb1235a3f2.tar.bz2 misskey-cc66a1f9c7733f0ff3c23b60a8578cdb1235a3f2.zip | |
Merge branch 'develop'
Diffstat (limited to 'src/server/api/stream')
| -rw-r--r-- | src/server/api/stream/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/api/stream/index.ts b/src/server/api/stream/index.ts index 05594ac722..2781d14bd9 100644 --- a/src/server/api/stream/index.ts +++ b/src/server/api/stream/index.ts @@ -18,7 +18,7 @@ export default class Connection { public user?: User; public following: User['id'][] = []; public muting: User['id'][] = []; - public token: AccessToken; + public token?: AccessToken; private wsConnection: websocket.connection; public subscriber: EventEmitter; private channels: Channel[] = []; @@ -117,7 +117,7 @@ export default class Connection { this.subscribingNotes[payload.id]++; - if (this.subscribingNotes[payload.id] == 1) { + if (this.subscribingNotes[payload.id] === 1) { this.subscriber.on(`noteStream:${payload.id}`, this.onNoteStreamMessage); } |