diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-09-11 20:57:25 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-09-11 20:57:25 +0900 |
| commit | 1fea2cdcbe341bb56be1cd2b79a8115b482fab65 (patch) | |
| tree | b33e8954aaf4825dae2953bf9d2cd988b57cb942 /src/server/api/stream/home.ts | |
| parent | 8.34.4 (diff) | |
| download | sharkey-1fea2cdcbe341bb56be1cd2b79a8115b482fab65.tar.gz sharkey-1fea2cdcbe341bb56be1cd2b79a8115b482fab65.tar.bz2 sharkey-1fea2cdcbe341bb56be1cd2b79a8115b482fab65.zip | |
Fix bug
Diffstat (limited to 'src/server/api/stream/home.ts')
| -rw-r--r-- | src/server/api/stream/home.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/server/api/stream/home.ts b/src/server/api/stream/home.ts index dc3ce9d19f..5f3b6744b2 100644 --- a/src/server/api/stream/home.ts +++ b/src/server/api/stream/home.ts @@ -36,6 +36,13 @@ export default async function( // Subscribe Home stream channel subscriber.on(`user-stream:${user._id}`, async x => { + // Renoteなら再pack + if (x.type == 'note' && x.body.renoteId != null) { + x.body.renote = await pack(x.body.renoteId, user, { + detail: true + }); + } + //#region 流れてきたメッセージがミュートしているユーザーが関わるものだったら無視する if (x.type == 'note') { if (mutedUserIds.includes(x.body.userId)) { @@ -54,13 +61,6 @@ export default async function( } //#endregion - // Renoteなら再pack - if (x.type == 'note' && x.body.renoteId != null) { - x.body.renote = await pack(x.body.renoteId, user, { - detail: true - }); - } - connection.send(JSON.stringify(x)); }); |