mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 17:59:37 +02:00

* Add /users/me/videos/ratings endpoint * Move ratings endpoint from users to accounts * /accounts/:name/ratings: add support for rating= and sort= * Restrict ratings list to owner * Wording and better way to ensure current account
5 lines
115 B
TypeScript
5 lines
115 B
TypeScript
function isRatingValid (value: any) {
|
|
return value === 'like' || value === 'dislike'
|
|
}
|
|
|
|
export { isRatingValid }
|