diff options
Diffstat (limited to 'server/lib/activitypub')
-rw-r--r-- | server/lib/activitypub/videos.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/activitypub/videos.ts b/server/lib/activitypub/videos.ts index b6f57e0ab..b3fbf88d0 100644 --- a/server/lib/activitypub/videos.ts +++ b/server/lib/activitypub/videos.ts | |||
@@ -287,7 +287,7 @@ async function createRates (actorUrls: string[], video: VideoModel, rate: VideoR | |||
287 | logger.info('Adding %d %s to video %s.', rateCounts, rate, video.uuid) | 287 | logger.info('Adding %d %s to video %s.', rateCounts, rate, video.uuid) |
288 | 288 | ||
289 | // This is "likes" and "dislikes" | 289 | // This is "likes" and "dislikes" |
290 | await video.increment(rate + 's', { by: rateCounts }) | 290 | if (rateCounts !== 0) await video.increment(rate + 's', { by: rateCounts }) |
291 | 291 | ||
292 | return | 292 | return |
293 | } | 293 | } |