aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/video')
-rw-r--r--server/models/video/video-format-utils.ts16
1 files changed, 8 insertions, 8 deletions
diff --git a/server/models/video/video-format-utils.ts b/server/models/video/video-format-utils.ts
index d4b213686..b1adbcb86 100644
--- a/server/models/video/video-format-utils.ts
+++ b/server/models/video/video-format-utils.ts
@@ -4,10 +4,10 @@ import { ActivityTagObject, ActivityUrlObject, VideoObject } from '../../../shar
4import { MIMETYPES, WEBSERVER } from '../../initializers/constants' 4import { MIMETYPES, WEBSERVER } from '../../initializers/constants'
5import { VideoCaptionModel } from './video-caption' 5import { VideoCaptionModel } from './video-caption'
6import { 6import {
7 getVideoCommentsActivityPubUrl, 7 getLocalVideoCommentsActivityPubUrl,
8 getVideoDislikesActivityPubUrl, 8 getLocalVideoDislikesActivityPubUrl,
9 getVideoLikesActivityPubUrl, 9 getLocalVideoLikesActivityPubUrl,
10 getVideoSharesActivityPubUrl 10 getLocalVideoSharesActivityPubUrl
11} from '../../lib/activitypub/url' 11} from '../../lib/activitypub/url'
12import { isArray } from '../../helpers/custom-validators/misc' 12import { isArray } from '../../helpers/custom-validators/misc'
13import { VideoStreamingPlaylist } from '../../../shared/models/videos/video-streaming-playlist.model' 13import { VideoStreamingPlaylist } from '../../../shared/models/videos/video-streaming-playlist.model'
@@ -382,10 +382,10 @@ function videoModelToActivityPubObject (video: MVideoAP): VideoObject {
382 height: i.height 382 height: i.height
383 })), 383 })),
384 url, 384 url,
385 likes: getVideoLikesActivityPubUrl(video), 385 likes: getLocalVideoLikesActivityPubUrl(video),
386 dislikes: getVideoDislikesActivityPubUrl(video), 386 dislikes: getLocalVideoDislikesActivityPubUrl(video),
387 shares: getVideoSharesActivityPubUrl(video), 387 shares: getLocalVideoSharesActivityPubUrl(video),
388 comments: getVideoCommentsActivityPubUrl(video), 388 comments: getLocalVideoCommentsActivityPubUrl(video),
389 attributedTo: [ 389 attributedTo: [
390 { 390 {
391 type: 'Person', 391 type: 'Person',