diff options
Diffstat (limited to 'server/lib/activitypub/send')
-rw-r--r-- | server/lib/activitypub/send/send-create.ts | 2 | ||||
-rw-r--r-- | server/lib/activitypub/send/send-update.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/activitypub/send/send-create.ts b/server/lib/activitypub/send/send-create.ts index edbc14a73..1709d8348 100644 --- a/server/lib/activitypub/send/send-create.ts +++ b/server/lib/activitypub/send/send-create.ts | |||
@@ -18,7 +18,7 @@ import { | |||
18 | } from '../../../typings/models' | 18 | } from '../../../typings/models' |
19 | 19 | ||
20 | async function sendCreateVideo (video: MVideoAP, t: Transaction) { | 20 | async function sendCreateVideo (video: MVideoAP, t: Transaction) { |
21 | if (video.privacy === VideoPrivacy.PRIVATE) return undefined | 21 | if (!video.hasPrivacyForFederation()) return undefined |
22 | 22 | ||
23 | logger.info('Creating job to send video creation of %s.', video.url) | 23 | logger.info('Creating job to send video creation of %s.', video.url) |
24 | 24 | ||
diff --git a/server/lib/activitypub/send/send-update.ts b/server/lib/activitypub/send/send-update.ts index 44e0e1161..cb14b8dbf 100644 --- a/server/lib/activitypub/send/send-update.ts +++ b/server/lib/activitypub/send/send-update.ts | |||
@@ -25,7 +25,7 @@ import { | |||
25 | async function sendUpdateVideo (videoArg: MVideoAPWithoutCaption, t: Transaction, overrodeByActor?: MActor) { | 25 | async function sendUpdateVideo (videoArg: MVideoAPWithoutCaption, t: Transaction, overrodeByActor?: MActor) { |
26 | const video = videoArg as MVideoAP | 26 | const video = videoArg as MVideoAP |
27 | 27 | ||
28 | if (video.privacy === VideoPrivacy.PRIVATE) return undefined | 28 | if (!video.hasPrivacyForFederation()) return undefined |
29 | 29 | ||
30 | logger.info('Creating job to update video %s.', video.url) | 30 | logger.info('Creating job to update video %s.', video.url) |
31 | 31 | ||