diff options
Diffstat (limited to 'server/lib/activitypub/process/process-add.ts')
-rw-r--r-- | server/lib/activitypub/process/process-add.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/activitypub/process/process-add.ts b/server/lib/activitypub/process/process-add.ts index 433e68eb6..98280b9f0 100644 --- a/server/lib/activitypub/process/process-add.ts +++ b/server/lib/activitypub/process/process-add.ts | |||
@@ -76,7 +76,7 @@ function addRemoteVideo (account: AccountInstance, | |||
76 | if (videoChannel.Account.id !== account.id) throw new Error('Video channel is not owned by this account.') | 76 | if (videoChannel.Account.id !== account.id) throw new Error('Video channel is not owned by this account.') |
77 | 77 | ||
78 | const videoFromDatabase = await db.Video.loadByUUIDOrURL(videoToCreateData.uuid, videoToCreateData.id, t) | 78 | const videoFromDatabase = await db.Video.loadByUUIDOrURL(videoToCreateData.uuid, videoToCreateData.id, t) |
79 | if (videoFromDatabase) throw new Error('Video with this UUID/Url already exists.') | 79 | if (videoFromDatabase) return videoFromDatabase |
80 | 80 | ||
81 | const videoData = await videoActivityObjectToDBAttributes(videoChannel, videoToCreateData, activity.to, activity.cc) | 81 | const videoData = await videoActivityObjectToDBAttributes(videoChannel, videoToCreateData, activity.to, activity.cc) |
82 | const video = db.Video.build(videoData) | 82 | const video = db.Video.build(videoData) |