diff options
Diffstat (limited to 'server/lib/activitypub/share.ts')
-rw-r--r-- | server/lib/activitypub/share.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/activitypub/share.ts b/server/lib/activitypub/share.ts index 327955dd2..1ff01a175 100644 --- a/server/lib/activitypub/share.ts +++ b/server/lib/activitypub/share.ts | |||
@@ -7,7 +7,7 @@ import { doJSONRequest } from '../../helpers/requests' | |||
7 | import { CRAWL_REQUEST_CONCURRENCY } from '../../initializers/constants' | 7 | import { CRAWL_REQUEST_CONCURRENCY } from '../../initializers/constants' |
8 | import { VideoShareModel } from '../../models/video/video-share' | 8 | import { VideoShareModel } from '../../models/video/video-share' |
9 | import { MChannelActorLight, MVideo, MVideoAccountLight, MVideoId } from '../../types/models/video' | 9 | import { MChannelActorLight, MVideo, MVideoAccountLight, MVideoId } from '../../types/models/video' |
10 | import { getOrCreateActorAndServerAndModel } from './actor' | 10 | import { getOrCreateAPActor } from './actors' |
11 | import { sendUndoAnnounce, sendVideoAnnounce } from './send' | 11 | import { sendUndoAnnounce, sendVideoAnnounce } from './send' |
12 | import { getLocalVideoAnnounceActivityPubUrl } from './url' | 12 | import { getLocalVideoAnnounceActivityPubUrl } from './url' |
13 | 13 | ||
@@ -64,7 +64,7 @@ async function addVideoShare (shareUrl: string, video: MVideoId) { | |||
64 | throw new Error(`Actor url ${actorUrl} has not the same host than the share url ${shareUrl}`) | 64 | throw new Error(`Actor url ${actorUrl} has not the same host than the share url ${shareUrl}`) |
65 | } | 65 | } |
66 | 66 | ||
67 | const actor = await getOrCreateActorAndServerAndModel(actorUrl) | 67 | const actor = await getOrCreateAPActor(actorUrl) |
68 | 68 | ||
69 | const entry = { | 69 | const entry = { |
70 | actorId: actor.id, | 70 | actorId: actor.id, |