diff options
Diffstat (limited to 'scripts/update-host.ts')
-rwxr-xr-x | scripts/update-host.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/update-host.ts b/scripts/update-host.ts index 1dc19664d..422a3c9a7 100755 --- a/scripts/update-host.ts +++ b/scripts/update-host.ts | |||
@@ -4,7 +4,7 @@ import { VideoModel } from '../server/models/video/video' | |||
4 | import { ActorModel } from '../server/models/activitypub/actor' | 4 | import { ActorModel } from '../server/models/activitypub/actor' |
5 | import { | 5 | import { |
6 | getAccountActivityPubUrl, | 6 | getAccountActivityPubUrl, |
7 | getAnnounceActivityPubUrl, | 7 | getVideoAnnounceActivityPubUrl, |
8 | getVideoActivityPubUrl, getVideoChannelActivityPubUrl, | 8 | getVideoActivityPubUrl, getVideoChannelActivityPubUrl, |
9 | getVideoCommentActivityPubUrl | 9 | getVideoCommentActivityPubUrl |
10 | } from '../server/lib/activitypub' | 10 | } from '../server/lib/activitypub' |
@@ -78,7 +78,7 @@ async function run () { | |||
78 | 78 | ||
79 | console.log('Updating video share ' + videoShare.url) | 79 | console.log('Updating video share ' + videoShare.url) |
80 | 80 | ||
81 | videoShare.url = getAnnounceActivityPubUrl(videoShare.Video.url, videoShare.Actor) | 81 | videoShare.url = getVideoAnnounceActivityPubUrl(videoShare.Actor, videoShare.Video) |
82 | await videoShare.save() | 82 | await videoShare.save() |
83 | } | 83 | } |
84 | 84 | ||