diff options
author | Chocobozzz <me@florianbigard.com> | 2022-03-18 11:17:35 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-03-18 11:21:50 +0100 |
commit | 57e4e1c1a95c3a81a967f54ecc2a510d8b0e129c (patch) | |
tree | fcf12670d643ec4a3b5eccdfa834227c0417d988 /server/lib/activitypub/send/send-create.ts | |
parent | 2e3f7a5a6fbae276d3ba1cb1b08289917ec7604b (diff) | |
download | PeerTube-57e4e1c1a95c3a81a967f54ecc2a510d8b0e129c.tar.gz PeerTube-57e4e1c1a95c3a81a967f54ecc2a510d8b0e129c.tar.zst PeerTube-57e4e1c1a95c3a81a967f54ecc2a510d8b0e129c.zip |
Don't store remote rates of remote videos
In the future we'll stop to expose all available rates to improve users
privacy
Diffstat (limited to 'server/lib/activitypub/send/send-create.ts')
-rw-r--r-- | server/lib/activitypub/send/send-create.ts | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/server/lib/activitypub/send/send-create.ts b/server/lib/activitypub/send/send-create.ts index baded642a..f6d897220 100644 --- a/server/lib/activitypub/send/send-create.ts +++ b/server/lib/activitypub/send/send-create.ts | |||
@@ -1,11 +1,8 @@ | |||
1 | import { Transaction } from 'sequelize' | 1 | import { Transaction } from 'sequelize' |
2 | import { ActivityAudience, ActivityCreate } from '../../../../shared/models/activitypub' | 2 | import { getServerActor } from '@server/models/application/application' |
3 | import { VideoPrivacy } from '../../../../shared/models/videos' | 3 | import { ActivityAudience, ActivityCreate, ContextType, VideoPlaylistPrivacy, VideoPrivacy } from '@shared/models' |
4 | import { VideoCommentModel } from '../../../models/video/video-comment' | ||
5 | import { broadcastToActors, broadcastToFollowers, sendVideoRelatedActivity, unicastTo } from './utils' | ||
6 | import { audiencify, getActorsInvolvedInVideo, getAudience, getAudienceFromFollowersOf, getVideoCommentAudience } from '../audience' | ||
7 | import { logger, loggerTagsFactory } from '../../../helpers/logger' | 4 | import { logger, loggerTagsFactory } from '../../../helpers/logger' |
8 | import { VideoPlaylistPrivacy } from '../../../../shared/models/videos/playlist/video-playlist-privacy.model' | 5 | import { VideoCommentModel } from '../../../models/video/video-comment' |
9 | import { | 6 | import { |
10 | MActorLight, | 7 | MActorLight, |
11 | MCommentOwnerVideo, | 8 | MCommentOwnerVideo, |
@@ -15,8 +12,16 @@ import { | |||
15 | MVideoRedundancyFileVideo, | 12 | MVideoRedundancyFileVideo, |
16 | MVideoRedundancyStreamingPlaylistVideo | 13 | MVideoRedundancyStreamingPlaylistVideo |
17 | } from '../../../types/models' | 14 | } from '../../../types/models' |
18 | import { getServerActor } from '@server/models/application/application' | 15 | import { audiencify, getAudience } from '../audience' |
19 | import { ContextType } from '@shared/models/activitypub/context' | 16 | import { |
17 | broadcastToActors, | ||
18 | broadcastToFollowers, | ||
19 | getActorsInvolvedInVideo, | ||
20 | getAudienceFromFollowersOf, | ||
21 | getVideoCommentAudience, | ||
22 | sendVideoRelatedActivity, | ||
23 | unicastTo | ||
24 | } from './shared' | ||
20 | 25 | ||
21 | const lTags = loggerTagsFactory('ap', 'create') | 26 | const lTags = loggerTagsFactory('ap', 'create') |
22 | 27 | ||