import { MIMETYPES, WEBSERVER } from '../../initializers/constants'
import { VideoCaptionModel } from './video-caption'
import {
- getVideoCommentsActivityPubUrl,
- getVideoDislikesActivityPubUrl,
- getVideoLikesActivityPubUrl,
- getVideoSharesActivityPubUrl
+ getLocalVideoCommentsActivityPubUrl,
+ getLocalVideoDislikesActivityPubUrl,
+ getLocalVideoLikesActivityPubUrl,
+ getLocalVideoSharesActivityPubUrl
} from '../../lib/activitypub/url'
import { isArray } from '../../helpers/custom-validators/misc'
import { VideoStreamingPlaylist } from '../../../shared/models/videos/video-streaming-playlist.model'
? video.VideoLive.saveReplay
: null,
+ permanentLive: video.isLive
+ ? video.VideoLive.permanentLive
+ : null,
+
state: video.state,
commentsEnabled: video.commentsEnabled,
downloadEnabled: video.downloadEnabled,
height: i.height
})),
url,
- likes: getVideoLikesActivityPubUrl(video),
- dislikes: getVideoDislikesActivityPubUrl(video),
- shares: getVideoSharesActivityPubUrl(video),
- comments: getVideoCommentsActivityPubUrl(video),
+ likes: getLocalVideoLikesActivityPubUrl(video),
+ dislikes: getLocalVideoDislikesActivityPubUrl(video),
+ shares: getLocalVideoSharesActivityPubUrl(video),
+ comments: getLocalVideoCommentsActivityPubUrl(video),
attributedTo: [
{
type: 'Person',