aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/activitypub/process/process-create.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/activitypub/process/process-create.ts')
-rw-r--r--server/lib/activitypub/process/process-create.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/activitypub/process/process-create.ts b/server/lib/activitypub/process/process-create.ts
index c88082bbf..4740dc432 100644
--- a/server/lib/activitypub/process/process-create.ts
+++ b/server/lib/activitypub/process/process-create.ts
@@ -63,7 +63,7 @@ function createVideoDislike (byAccount: AccountInstance, activity: ActivityCreat
63 defaults: rate, 63 defaults: rate,
64 transaction: t 64 transaction: t
65 }) 65 })
66 await video.increment('dislikes', { transaction: t }) 66 if (created === true) await video.increment('dislikes', { transaction: t })
67 67
68 if (video.isOwned() && created === true) { 68 if (video.isOwned() && created === true) {
69 // Don't resend the activity to the sender 69 // Don't resend the activity to the sender