summaryrefslogtreecommitdiff
path: root/src/stream.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-07-11 14:33:03 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-07-11 14:33:03 +0900
commitc41ccf7821c1729c1fdde09d4f62f5d6ba4f79bc (patch)
tree9f897627aa19d6576002a4dc0794066427e44f24 /src/stream.ts
parentFix bug (diff)
downloadmisskey-c41ccf7821c1729c1fdde09d4f62f5d6ba4f79bc.tar.gz
misskey-c41ccf7821c1729c1fdde09d4f62f5d6ba4f79bc.tar.bz2
misskey-c41ccf7821c1729c1fdde09d4f62f5d6ba4f79bc.zip
Fix bug
Diffstat (limited to 'src/stream.ts')
-rw-r--r--src/stream.ts2
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 {