diff options
author | Chocobozzz <me@florianbigard.com> | 2018-01-05 11:19:25 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-05 11:19:25 +0100 |
commit | d7e70384a360cda51fe23712331110a5c8b1124c (patch) | |
tree | 385609669c92936a5c66ae028c331fb4a9b5943e /server/controllers | |
parent | 2890b615f31ab7d519d8be66b49ff8712df90c51 (diff) | |
download | PeerTube-d7e70384a360cda51fe23712331110a5c8b1124c.tar.gz PeerTube-d7e70384a360cda51fe23712331110a5c8b1124c.tar.zst PeerTube-d7e70384a360cda51fe23712331110a5c8b1124c.zip |
Add mentions to comments
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/activitypub/client.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/controllers/activitypub/client.ts b/server/controllers/activitypub/client.ts index e0ab3188b..717473912 100644 --- a/server/controllers/activitypub/client.ts +++ b/server/controllers/activitypub/client.ts | |||
@@ -114,5 +114,6 @@ async function videoChannelController (req: express.Request, res: express.Respon | |||
114 | async function videoCommentController (req: express.Request, res: express.Response, next: express.NextFunction) { | 114 | async function videoCommentController (req: express.Request, res: express.Response, next: express.NextFunction) { |
115 | const videoComment: VideoCommentModel = res.locals.videoComment | 115 | const videoComment: VideoCommentModel = res.locals.videoComment |
116 | 116 | ||
117 | return res.json(videoComment.toActivityPubObject()) | 117 | const threadParentComments = await VideoCommentModel.listThreadParentComments(videoComment, undefined) |
118 | return res.json(videoComment.toActivityPubObject(threadParentComments)) | ||
118 | } | 119 | } |