diff options
| author | tamaina <tamaina@hotmail.co.jp> | 2018-09-04 19:24:23 +0900 |
|---|---|---|
| committer | tamaina <tamaina@hotmail.co.jp> | 2018-09-04 19:24:23 +0900 |
| commit | 15956839046937bc07f21afb29326ca43856be5c (patch) | |
| tree | 13665b6d8cc5663a1ce3296e48da55ac1d337278 /src/client/app/common/scripts | |
| parent | Use string interpolation (diff) | |
| parent | :art: (diff) | |
| download | misskey-15956839046937bc07f21afb29326ca43856be5c.tar.gz misskey-15956839046937bc07f21afb29326ca43856be5c.tar.bz2 misskey-15956839046937bc07f21afb29326ca43856be5c.zip | |
merge upstream
Diffstat (limited to 'src/client/app/common/scripts')
| -rw-r--r-- | src/client/app/common/scripts/streaming/games/reversi/reversi-game.ts | 6 | ||||
| -rw-r--r-- | src/client/app/common/scripts/streaming/local-timeline.ts | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/client/app/common/scripts/streaming/games/reversi/reversi-game.ts b/src/client/app/common/scripts/streaming/games/reversi/reversi-game.ts index e6b02fcfdb..adfa75ff3b 100644 --- a/src/client/app/common/scripts/streaming/games/reversi/reversi-game.ts +++ b/src/client/app/common/scripts/streaming/games/reversi/reversi-game.ts @@ -3,8 +3,10 @@ import MiOS from '../../../../../mios'; export class ReversiGameStream extends Stream { constructor(os: MiOS, me, game) { - super(os, 'games/reversi-game', { - i: me ? me.token : null, + super(os, 'games/reversi-game', me ? { + i: me.token, + game: game.id + } : { game: game.id }); } diff --git a/src/client/app/common/scripts/streaming/local-timeline.ts b/src/client/app/common/scripts/streaming/local-timeline.ts index 2834262bdc..41c36aa14c 100644 --- a/src/client/app/common/scripts/streaming/local-timeline.ts +++ b/src/client/app/common/scripts/streaming/local-timeline.ts @@ -7,9 +7,9 @@ import MiOS from '../../../mios'; */ export class LocalTimelineStream extends Stream { constructor(os: MiOS, me) { - super(os, 'local-timeline', { + super(os, 'local-timeline', me ? { i: me.token - }); + } : {}); } } |