diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-01-20 19:22:13 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-01-20 19:22:13 +0900 |
| commit | 3c194142a82a7441c8ee329432457350cc7008a2 (patch) | |
| tree | 390d1a4fca158640d6e3b96f31dcf899b817ad59 /src/server/api/stream/channels | |
| parent | Update reversi routing (#3937) (diff) | |
| download | sharkey-3c194142a82a7441c8ee329432457350cc7008a2.tar.gz sharkey-3c194142a82a7441c8ee329432457350cc7008a2.tar.bz2 sharkey-3c194142a82a7441c8ee329432457350cc7008a2.zip | |
[Server] Fix #3928
Diffstat (limited to 'src/server/api/stream/channels')
4 files changed, 24 insertions, 0 deletions
diff --git a/src/server/api/stream/channels/global-timeline.ts b/src/server/api/stream/channels/global-timeline.ts index b09035daee..b3689d47f5 100644 --- a/src/server/api/stream/channels/global-timeline.ts +++ b/src/server/api/stream/channels/global-timeline.ts @@ -28,6 +28,12 @@ export default class extends Channel { @autobind private async onNote(note: any) { + // リプライなら再pack + if (note.replyId != null) { + note.reply = await pack(note.replyId, this.user, { + detail: true + }); + } // Renoteなら再pack if (note.renoteId != null) { note.renote = await pack(note.renoteId, this.user, { diff --git a/src/server/api/stream/channels/home-timeline.ts b/src/server/api/stream/channels/home-timeline.ts index d3477d846a..3c0b238720 100644 --- a/src/server/api/stream/channels/home-timeline.ts +++ b/src/server/api/stream/channels/home-timeline.ts @@ -22,6 +22,12 @@ export default class extends Channel { @autobind private async onNote(note: any) { + // リプライなら再pack + if (note.replyId != null) { + note.reply = await pack(note.replyId, this.user, { + detail: true + }); + } // Renoteなら再pack if (note.renoteId != null) { note.renote = await pack(note.renoteId, this.user, { diff --git a/src/server/api/stream/channels/hybrid-timeline.ts b/src/server/api/stream/channels/hybrid-timeline.ts index e573d27ee8..35ef17b56b 100644 --- a/src/server/api/stream/channels/hybrid-timeline.ts +++ b/src/server/api/stream/channels/hybrid-timeline.ts @@ -27,6 +27,12 @@ export default class extends Channel { @autobind private async onNewNote(note: any) { + // リプライなら再pack + if (note.replyId != null) { + note.reply = await pack(note.replyId, this.user, { + detail: true + }); + } // Renoteなら再pack if (note.renoteId != null) { note.renote = await pack(note.renoteId, this.user, { diff --git a/src/server/api/stream/channels/local-timeline.ts b/src/server/api/stream/channels/local-timeline.ts index 8e490677d3..3402023192 100644 --- a/src/server/api/stream/channels/local-timeline.ts +++ b/src/server/api/stream/channels/local-timeline.ts @@ -28,6 +28,12 @@ export default class extends Channel { @autobind private async onNote(note: any) { + // リプライなら再pack + if (note.replyId != null) { + note.reply = await pack(note.replyId, this.user, { + detail: true + }); + } // Renoteなら再pack if (note.renoteId != null) { note.renote = await pack(note.renoteId, this.user, { |