diff options
Diffstat (limited to 'server/lib/activitypub/process/process-like.ts')
-rw-r--r-- | server/lib/activitypub/process/process-like.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/activitypub/process/process-like.ts b/server/lib/activitypub/process/process-like.ts index 0347f95be..5f2ffe7ea 100644 --- a/server/lib/activitypub/process/process-like.ts +++ b/server/lib/activitypub/process/process-like.ts | |||
@@ -46,7 +46,7 @@ function createVideoLike (byAccount: AccountInstance, activity: ActivityLike) { | |||
46 | defaults: rate, | 46 | defaults: rate, |
47 | transaction: t | 47 | transaction: t |
48 | }) | 48 | }) |
49 | await video.increment('likes', { transaction: t }) | 49 | if (created === true) await video.increment('likes', { transaction: t }) |
50 | 50 | ||
51 | if (video.isOwned() && created === true) { | 51 | if (video.isOwned() && created === true) { |
52 | // Don't resend the activity to the sender | 52 | // Don't resend the activity to the sender |