mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Don't store remote rates of remote videos
In the future we'll stop to expose all available rates to improve users privacy
This commit is contained in:
parent
2e3f7a5a6f
commit
57e4e1c1a9
44 changed files with 402 additions and 338 deletions
|
@ -9,7 +9,7 @@ import { MActorSignature, MCommentOwnerVideo, MVideoAccountLightBlacklistAllFile
|
|||
import { Notifier } from '../../notifier'
|
||||
import { createOrUpdateCacheFile } from '../cache-file'
|
||||
import { createOrUpdateVideoPlaylist } from '../playlists'
|
||||
import { forwardVideoRelatedActivity } from '../send/utils'
|
||||
import { forwardVideoRelatedActivity } from '../send/shared/send-utils'
|
||||
import { resolveThread } from '../video-comments'
|
||||
import { getOrCreateAPVideo } from '../videos'
|
||||
|
||||
|
@ -55,7 +55,7 @@ export {
|
|||
async function processCreateVideo (activity: ActivityCreate, notify: boolean) {
|
||||
const videoToCreateData = activity.object as VideoObject
|
||||
|
||||
const syncParam = { likes: false, dislikes: false, shares: false, comments: false, thumbnail: true, refreshVideo: false }
|
||||
const syncParam = { rates: false, shares: false, comments: false, thumbnail: true, refreshVideo: false }
|
||||
const { video, created } = await getOrCreateAPVideo({ videoObject: videoToCreateData, syncParam })
|
||||
|
||||
if (created && notify) Notifier.Instance.notifyOnNewVideoIfNeeded(video)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue