} from '../../lib/activitypub'
export type VideoFormattingJSONOptions = {
+ completeDescription?: boolean
additionalAttributes: {
state?: boolean,
waitTranscoding?: boolean,
label: VideoModel.getPrivacyLabel(video.privacy)
},
nsfw: video.nsfw,
- description: video.getTruncatedDescription(),
+ description: options.completeDescription === true ? video.description : video.getTruncatedDescription(),
isLocal: video.isOwned(),
duration: video.duration,
views: video.views,
toFormattedJSON (): VideoImport {
const videoFormatOptions = {
+ completeDescription: true,
additionalAttributes: { state: true, waitTranscoding: true, scheduledUpdate: true }
}
const video = this.Video
- ? Object.assign(this.Video.toFormattedJSON(videoFormatOptions), {
- tags: this.Video.Tags.map(t => t.name)
- })
+ ? Object.assign(this.Video.toFormattedJSON(videoFormatOptions), { tags: this.Video.Tags.map(t => t.name) })
: undefined
return {