aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/activitypub
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-07-26 16:45:47 +0200
committerChocobozzz <me@florianbigard.com>2018-07-26 16:46:36 +0200
commit3ac046e2a478a88e24d5ce82d4c43cdd64dea1a2 (patch)
tree9d8717797dbc011d5b08dcff805d2fdce9effe05 /server/lib/activitypub
parenta5d379d305d1b5f25db96e896512e15f4f9a0ebb (diff)
downloadPeerTube-3ac046e2a478a88e24d5ce82d4c43cdd64dea1a2.tar.gz
PeerTube-3ac046e2a478a88e24d5ce82d4c43cdd64dea1a2.tar.zst
PeerTube-3ac046e2a478a88e24d5ce82d4c43cdd64dea1a2.zip
Fix peertube on chrome
Diffstat (limited to 'server/lib/activitypub')
-rw-r--r--server/lib/activitypub/videos.ts2
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}