server/core/lib/activitypub/videos/updater.ts
Function update
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async update (overrideTo?: string[]) {
logger.debug(
'Updating remote video "%s".', this.videoObject.uuid,
{ videoObject: this.videoObject, ...this.lTags() }
)
Function updateVideo
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private updateVideo (channel: MChannelId, transaction?: Transaction, overrideTo?: string[]) {
const to = overrideTo || this.videoObject.to
const videoData = getVideoAttributesFromObject(channel, this.videoObject, to)
this.video.name = videoData.name
this.video.uuid = videoData.uuid