diff options
author | Chocobozzz <me@florianbigard.com> | 2019-08-21 14:31:57 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-08-21 15:23:04 +0200 |
commit | b5fecbf44192144d1ca27c23a0b53922de288c10 (patch) | |
tree | 03e4f1048273e6de60b8eb642fb52b2a4c68e60c /server/lib | |
parent | f92e7f76d43cbad173be87f47105b9a02032318a (diff) | |
download | PeerTube-b5fecbf44192144d1ca27c23a0b53922de288c10.tar.gz PeerTube-b5fecbf44192144d1ca27c23a0b53922de288c10.tar.zst PeerTube-b5fecbf44192144d1ca27c23a0b53922de288c10.zip |
Type toActivityPubObject functions
Diffstat (limited to 'server/lib')
-rw-r--r-- | server/lib/activitypub/send/send-update.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/lib/activitypub/send/send-update.ts b/server/lib/activitypub/send/send-update.ts index 3a5cc1853..37517c2be 100644 --- a/server/lib/activitypub/send/send-update.ts +++ b/server/lib/activitypub/send/send-update.ts | |||
@@ -12,10 +12,10 @@ import { VideoCaptionModel } from '../../../models/video/video-caption' | |||
12 | import { VideoPlaylistPrivacy } from '../../../../shared/models/videos/playlist/video-playlist-privacy.model' | 12 | import { VideoPlaylistPrivacy } from '../../../../shared/models/videos/playlist/video-playlist-privacy.model' |
13 | import { getServerActor } from '../../../helpers/utils' | 13 | import { getServerActor } from '../../../helpers/utils' |
14 | import { | 14 | import { |
15 | MAccountActor, | 15 | MAccountDefault, |
16 | MActor, | 16 | MActor, |
17 | MActorLight, | 17 | MActorLight, |
18 | MChannelActor, | 18 | MChannelDefault, |
19 | MVideoAP, | 19 | MVideoAP, |
20 | MVideoAPWithoutCaption, | 20 | MVideoAPWithoutCaption, |
21 | MVideoPlaylistFull, | 21 | MVideoPlaylistFull, |
@@ -49,7 +49,7 @@ async function sendUpdateVideo (videoArg: MVideoAPWithoutCaption, t: Transaction | |||
49 | return broadcastToFollowers(updateActivity, byActor, actorsInvolved, t) | 49 | return broadcastToFollowers(updateActivity, byActor, actorsInvolved, t) |
50 | } | 50 | } |
51 | 51 | ||
52 | async function sendUpdateActor (accountOrChannel: MAccountActor | MChannelActor, t: Transaction) { | 52 | async function sendUpdateActor (accountOrChannel: MChannelDefault | MAccountDefault, t: Transaction) { |
53 | const byActor = accountOrChannel.Actor | 53 | const byActor = accountOrChannel.Actor |
54 | 54 | ||
55 | logger.info('Creating job to update actor %s.', byActor.url) | 55 | logger.info('Creating job to update actor %s.', byActor.url) |