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:
Chocobozzz
2022-03-18 11:17:35 +01:00
parent 2e3f7a5a6f
commit 57e4e1c1a9
44 changed files with 402 additions and 338 deletions

View File

@@ -42,7 +42,7 @@ async function getOrCreateAPVideo (
options: GetVideoParamAll | GetVideoParamImmutable | GetVideoParamOther
): GetVideoResult<MVideoAccountLightBlacklistAllFiles | MVideoThumbnail | MVideoImmutable> {
// Default params
const syncParam = options.syncParam || { likes: true, dislikes: true, shares: true, comments: true, thumbnail: true, refreshVideo: false }
const syncParam = options.syncParam || { rates: true, shares: true, comments: true, thumbnail: true, refreshVideo: false }
const fetchType = options.fetchType || 'all'
const allowRefresh = options.allowRefresh !== false