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:
parent
2e3f7a5a6f
commit
57e4e1c1a9
44 changed files with 402 additions and 338 deletions
|
@ -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')
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue