diff options
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) |