diff options
author | Chocobozzz <me@florianbigard.com> | 2023-07-25 14:26:12 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-07-25 14:26:12 +0200 |
commit | 3b46eec8aeb95eb0dce763e3569c0509b1da7607 (patch) | |
tree | c5b638072fb903d9a7690e9174a6c2fb6f9b968f /server/lib/activitypub/videos/shared | |
parent | f42dd5524b47e89d9b4491f784f05a99303cc934 (diff) | |
download | PeerTube-3b46eec8aeb95eb0dce763e3569c0509b1da7607.tar.gz PeerTube-3b46eec8aeb95eb0dce763e3569c0509b1da7607.tar.zst PeerTube-3b46eec8aeb95eb0dce763e3569c0509b1da7607.zip |
Remove unused param
Diffstat (limited to 'server/lib/activitypub/videos/shared')
-rw-r--r-- | server/lib/activitypub/videos/shared/creator.ts | 2 | ||||
-rw-r--r-- | server/lib/activitypub/videos/shared/video-sync-attributes.ts | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/server/lib/activitypub/videos/shared/creator.ts b/server/lib/activitypub/videos/shared/creator.ts index 512d14d82..e44fd0d52 100644 --- a/server/lib/activitypub/videos/shared/creator.ts +++ b/server/lib/activitypub/videos/shared/creator.ts | |||
@@ -18,7 +18,7 @@ export class APVideoCreator extends APVideoAbstractBuilder { | |||
18 | this.lTags = loggerTagsFactory('ap', 'video', 'create', this.videoObject.uuid, this.videoObject.id) | 18 | this.lTags = loggerTagsFactory('ap', 'video', 'create', this.videoObject.uuid, this.videoObject.id) |
19 | } | 19 | } |
20 | 20 | ||
21 | async create (waitThumbnail = false) { | 21 | async create () { |
22 | logger.debug('Adding remote video %s.', this.videoObject.id, this.lTags()) | 22 | logger.debug('Adding remote video %s.', this.videoObject.id, this.lTags()) |
23 | 23 | ||
24 | const channelActor = await this.getOrCreateVideoChannelFromVideoObject() | 24 | const channelActor = await this.getOrCreateVideoChannelFromVideoObject() |
diff --git a/server/lib/activitypub/videos/shared/video-sync-attributes.ts b/server/lib/activitypub/videos/shared/video-sync-attributes.ts index e3cb96a62..aa37f3d34 100644 --- a/server/lib/activitypub/videos/shared/video-sync-attributes.ts +++ b/server/lib/activitypub/videos/shared/video-sync-attributes.ts | |||
@@ -17,11 +17,14 @@ type SyncParam = { | |||
17 | rates: boolean | 17 | rates: boolean |
18 | shares: boolean | 18 | shares: boolean |
19 | comments: boolean | 19 | comments: boolean |
20 | thumbnail: boolean | ||
21 | refreshVideo?: boolean | 20 | refreshVideo?: boolean |
22 | } | 21 | } |
23 | 22 | ||
24 | async function syncVideoExternalAttributes (video: MVideo, fetchedVideo: VideoObject, syncParam: SyncParam) { | 23 | async function syncVideoExternalAttributes ( |
24 | video: MVideo, | ||
25 | fetchedVideo: VideoObject, | ||
26 | syncParam: Pick<SyncParam, 'rates' | 'shares' | 'comments'> | ||
27 | ) { | ||
25 | logger.info('Adding likes/dislikes/shares/comments of video %s.', video.uuid) | 28 | logger.info('Adding likes/dislikes/shares/comments of video %s.', video.uuid) |
26 | 29 | ||
27 | const ratePromise = updateVideoRates(video, fetchedVideo) | 30 | const ratePromise = updateVideoRates(video, fetchedVideo) |