mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix conflict rate serializations
This commit is contained in:
@@ -63,7 +63,7 @@ function createVideoDislike (byAccount: AccountInstance, activity: ActivityCreat
|
||||
defaults: rate,
|
||||
transaction: t
|
||||
})
|
||||
await video.increment('dislikes', { transaction: t })
|
||||
if (created === true) await video.increment('dislikes', { transaction: t })
|
||||
|
||||
if (video.isOwned() && created === true) {
|
||||
// Don't resend the activity to the sender
|
||||
|
||||
Reference in New Issue
Block a user