diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-07-11 14:33:03 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-07-11 14:33:03 +0900 |
| commit | c41ccf7821c1729c1fdde09d4f62f5d6ba4f79bc (patch) | |
| tree | 9f897627aa19d6576002a4dc0794066427e44f24 /src/stream.ts | |
| parent | Fix bug (diff) | |
| download | misskey-c41ccf7821c1729c1fdde09d4f62f5d6ba4f79bc.tar.gz misskey-c41ccf7821c1729c1fdde09d4f62f5d6ba4f79bc.tar.bz2 misskey-c41ccf7821c1729c1fdde09d4f62f5d6ba4f79bc.zip | |
Fix bug
Diffstat (limited to 'src/stream.ts')
| -rw-r--r-- | src/stream.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stream.ts b/src/stream.ts index b2aa4f0e2a..cec5fcf0f3 100644 --- a/src/stream.ts +++ b/src/stream.ts @@ -50,7 +50,7 @@ class MisskeyEvent { } public publishHybridTimelineStream(userId: ID, note: any): void { - this.redisClient.publish(`misskey:hybrid-timeline:${userId}`, JSON.stringify(note)); + this.redisClient.publish(userId ? `misskey:hybrid-timeline:${userId}` : 'misskey:hybrid-timeline', JSON.stringify(note)); } public publishGlobalTimelineStream(note: any): void { |