]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/api/videos/rate.ts
Use global uuid instead of remoteId for videos
[github/Chocobozzz/PeerTube.git] / server / controllers / api / videos / rate.ts
index 8456cbaf24ec48685b6d2ed0348f57545fdefcaf..6ddc698173f4e2d2d66cfc99190dad7b31a3a437 100644 (file)
@@ -69,7 +69,7 @@ function rateVideo (req: express.Request, res: express.Response) {
 
         // There was a previous rate, update it
         if (previousRate) {
-          // We will remove the previous rate, so we will need to remove it from the video attribute
+          // We will remove the previous rate, so we will need to update the video count attribute
           if (previousRate.type === VIDEO_RATE_TYPES.LIKE) likesToIncrement--
           else if (previousRate.type === VIDEO_RATE_TYPES.DISLIKE) dislikesToIncrement--