diff options
author | Chocobozzz <me@florianbigard.com> | 2023-01-05 15:31:51 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-01-09 09:29:02 +0100 |
commit | cde3d90ded5debb24281a444eabb720b721e5600 (patch) | |
tree | 9ad93c2228b980863d06fea45e3c0b04003ede2a /server/controllers/activitypub | |
parent | 458685e0d039a0ad3fa4f26d99746f7d6d0b40e9 (diff) | |
download | PeerTube-cde3d90ded5debb24281a444eabb720b721e5600.tar.gz PeerTube-cde3d90ded5debb24281a444eabb720b721e5600.tar.zst PeerTube-cde3d90ded5debb24281a444eabb720b721e5600.zip |
Use raw sql for comments
Diffstat (limited to 'server/controllers/activitypub')
-rw-r--r-- | server/controllers/activitypub/client.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/activitypub/client.ts b/server/controllers/activitypub/client.ts index 8e064fb5b..def320730 100644 --- a/server/controllers/activitypub/client.ts +++ b/server/controllers/activitypub/client.ts | |||
@@ -309,7 +309,7 @@ async function videoCommentsController (req: express.Request, res: express.Respo | |||
309 | if (redirectIfNotOwned(video.url, res)) return | 309 | if (redirectIfNotOwned(video.url, res)) return |
310 | 310 | ||
311 | const handler = async (start: number, count: number) => { | 311 | const handler = async (start: number, count: number) => { |
312 | const result = await VideoCommentModel.listAndCountByVideoForAP(video, start, count) | 312 | const result = await VideoCommentModel.listAndCountByVideoForAP({ video, start, count }) |
313 | 313 | ||
314 | return { | 314 | return { |
315 | total: result.total, | 315 | total: result.total, |