diff options
Diffstat (limited to 'server/lib/activitypub/process/process-create.ts')
-rw-r--r-- | server/lib/activitypub/process/process-create.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/activitypub/process/process-create.ts b/server/lib/activitypub/process/process-create.ts index 3e8ad184c..b5b1a0feb 100644 --- a/server/lib/activitypub/process/process-create.ts +++ b/server/lib/activitypub/process/process-create.ts | |||
@@ -9,7 +9,7 @@ import { MActorSignature, MCommentOwnerVideo, MVideoAccountLightBlacklistAllFile | |||
9 | import { Notifier } from '../../notifier' | 9 | import { Notifier } from '../../notifier' |
10 | import { createOrUpdateCacheFile } from '../cache-file' | 10 | import { createOrUpdateCacheFile } from '../cache-file' |
11 | import { createOrUpdateVideoPlaylist } from '../playlists' | 11 | import { createOrUpdateVideoPlaylist } from '../playlists' |
12 | import { forwardVideoRelatedActivity } from '../send/utils' | 12 | import { forwardVideoRelatedActivity } from '../send/shared/send-utils' |
13 | import { resolveThread } from '../video-comments' | 13 | import { resolveThread } from '../video-comments' |
14 | import { getOrCreateAPVideo } from '../videos' | 14 | import { getOrCreateAPVideo } from '../videos' |
15 | 15 | ||
@@ -55,7 +55,7 @@ export { | |||
55 | async function processCreateVideo (activity: ActivityCreate, notify: boolean) { | 55 | async function processCreateVideo (activity: ActivityCreate, notify: boolean) { |
56 | const videoToCreateData = activity.object as VideoObject | 56 | const videoToCreateData = activity.object as VideoObject |
57 | 57 | ||
58 | const syncParam = { likes: false, dislikes: false, shares: false, comments: false, thumbnail: true, refreshVideo: false } | 58 | const syncParam = { rates: false, shares: false, comments: false, thumbnail: true, refreshVideo: false } |
59 | const { video, created } = await getOrCreateAPVideo({ videoObject: videoToCreateData, syncParam }) | 59 | const { video, created } = await getOrCreateAPVideo({ videoObject: videoToCreateData, syncParam }) |
60 | 60 | ||
61 | if (created && notify) Notifier.Instance.notifyOnNewVideoIfNeeded(video) | 61 | if (created && notify) Notifier.Instance.notifyOnNewVideoIfNeeded(video) |