summaryrefslogtreecommitdiff
path: root/src/server/api/stream
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/api/stream')
-rw-r--r--src/server/api/stream/channels/global-timeline.ts6
-rw-r--r--src/server/api/stream/channels/home-timeline.ts6
-rw-r--r--src/server/api/stream/channels/hybrid-timeline.ts6
-rw-r--r--src/server/api/stream/channels/local-timeline.ts6
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, {