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/videos/updater.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/videos/updater.ts')
-rw-r--r-- | server/lib/activitypub/videos/updater.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/lib/activitypub/videos/updater.ts b/server/lib/activitypub/videos/updater.ts index f786bb196..32cbf7e07 100644 --- a/server/lib/activitypub/videos/updater.ts +++ b/server/lib/activitypub/videos/updater.ts | |||
@@ -7,7 +7,7 @@ import { autoBlacklistVideoIfNeeded } from '@server/lib/video-blacklist' | |||
7 | import { VideoLiveModel } from '@server/models/video/video-live' | 7 | import { VideoLiveModel } from '@server/models/video/video-live' |
8 | import { MActor, MChannelAccountLight, MChannelId, MVideoAccountLightBlacklistAllFiles, MVideoFullLight } from '@server/types/models' | 8 | import { MActor, MChannelAccountLight, MChannelId, MVideoAccountLightBlacklistAllFiles, MVideoFullLight } from '@server/types/models' |
9 | import { VideoObject, VideoPrivacy } from '@shared/models' | 9 | import { VideoObject, VideoPrivacy } from '@shared/models' |
10 | import { APVideoAbstractBuilder, getVideoAttributesFromObject } from './shared' | 10 | import { APVideoAbstractBuilder, getVideoAttributesFromObject, updateVideoRates } from './shared' |
11 | 11 | ||
12 | export class APVideoUpdater extends APVideoAbstractBuilder { | 12 | export class APVideoUpdater extends APVideoAbstractBuilder { |
13 | private readonly wasPrivateVideo: boolean | 13 | private readonly wasPrivateVideo: boolean |
@@ -74,6 +74,8 @@ export class APVideoUpdater extends APVideoAbstractBuilder { | |||
74 | transaction: undefined | 74 | transaction: undefined |
75 | }) | 75 | }) |
76 | 76 | ||
77 | await updateVideoRates(videoUpdated, this.videoObject) | ||
78 | |||
77 | // Notify our users? | 79 | // Notify our users? |
78 | if (this.wasPrivateVideo || this.wasUnlistedVideo) { | 80 | if (this.wasPrivateVideo || this.wasUnlistedVideo) { |
79 | Notifier.Instance.notifyOnNewVideoIfNeeded(videoUpdated) | 81 | Notifier.Instance.notifyOnNewVideoIfNeeded(videoUpdated) |