1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 09:49:20 +02:00

Add Comment Count to Video Preview Components (#6635)

* WIP: Add backend functionality to store comment count per video and update on comment visibility actions

* WIP: Display image icon and comment count on video miniature component

* Probably don't need to index the comment count

* Added comment count back to mini video component

* Added basic tests

* Sort by comments, more robust comments count

---------

Co-authored-by: Chocobozzz <me@florianbigard.com>
This commit is contained in:
RF9A5V 2025-04-02 07:29:22 -07:00 committed by GitHub
parent 75d7c2a9dc
commit 25a9f37ded
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 255 additions and 56 deletions

View file

@ -7186,6 +7186,7 @@ components:
- -publishedAt
- -views
- -likes
- -comments
- -trending
- -hot
- -best
@ -8445,6 +8446,9 @@ components:
dislikes:
type: integer
example: 7
comments:
description: "**PeerTube >= 7.2** Number of comments on the video"
type: integer
nsfw:
type: boolean
waitTranscoding: