aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/activitypub/videos
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/activitypub/videos')
-rw-r--r--server/lib/activitypub/videos/updater.ts8
1 files changed, 2 insertions, 6 deletions
diff --git a/server/lib/activitypub/videos/updater.ts b/server/lib/activitypub/videos/updater.ts
index 32cbf7e07..0bf32f440 100644
--- a/server/lib/activitypub/videos/updater.ts
+++ b/server/lib/activitypub/videos/updater.ts
@@ -13,8 +13,6 @@ export class APVideoUpdater extends APVideoAbstractBuilder {
13 private readonly wasPrivateVideo: boolean 13 private readonly wasPrivateVideo: boolean
14 private readonly wasUnlistedVideo: boolean 14 private readonly wasUnlistedVideo: boolean
15 15
16 private readonly videoFieldsSave: any
17
18 private readonly oldVideoChannel: MChannelAccountLight 16 private readonly oldVideoChannel: MChannelAccountLight
19 17
20 protected lTags: LoggerTagsFn 18 protected lTags: LoggerTagsFn
@@ -30,8 +28,6 @@ export class APVideoUpdater extends APVideoAbstractBuilder {
30 28
31 this.oldVideoChannel = this.video.VideoChannel 29 this.oldVideoChannel = this.video.VideoChannel
32 30
33 this.videoFieldsSave = this.video.toJSON()
34
35 this.lTags = loggerTagsFactory('ap', 'video', 'update', video.uuid, video.url) 31 this.lTags = loggerTagsFactory('ap', 'video', 'update', video.uuid, video.url)
36 } 32 }
37 33
@@ -156,8 +152,8 @@ export class APVideoUpdater extends APVideoAbstractBuilder {
156 } 152 }
157 153
158 private catchUpdateError (err: Error) { 154 private catchUpdateError (err: Error) {
159 if (this.video !== undefined && this.videoFieldsSave !== undefined) { 155 if (this.video !== undefined) {
160 resetSequelizeInstance(this.video, this.videoFieldsSave) 156 resetSequelizeInstance(this.video)
161 } 157 }
162 158
163 // This is just a debug because we will retry the insert 159 // This is just a debug because we will retry the insert