1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 10:19:35 +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:
Chocobozzz 2022-03-18 11:17:35 +01:00
parent 2e3f7a5a6f
commit 57e4e1c1a9
No known key found for this signature in database
GPG key ID: 583A612D890159BE
44 changed files with 402 additions and 338 deletions

View file

@ -66,11 +66,13 @@ activityPubClientRouter.get('/accounts?/:name/playlists',
)
activityPubClientRouter.get('/accounts?/:name/likes/:videoId',
executeIfActivityPub,
cacheRoute(ROUTE_CACHE_LIFETIME.ACTIVITY_PUB.VIDEOS),
asyncMiddleware(getAccountVideoRateValidatorFactory('like')),
getAccountVideoRateFactory('like')
)
activityPubClientRouter.get('/accounts?/:name/dislikes/:videoId',
executeIfActivityPub,
cacheRoute(ROUTE_CACHE_LIFETIME.ACTIVITY_PUB.VIDEOS),
asyncMiddleware(getAccountVideoRateValidatorFactory('dislike')),
getAccountVideoRateFactory('dislike')
)