]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - server/helpers/custom-validators/follows.ts
Handle live federation
[github/Chocobozzz/PeerTube.git] / server / helpers / custom-validators / follows.ts
1 import { exists } from './misc'
2 import { FollowState } from '@shared/models'
3
4 function isFollowStateValid (value: FollowState) {
5 if (!exists(value)) return false
6
7 return value === 'pending' || value === 'accepted'
8 }
9
10 // ---------------------------------------------------------------------------
11
12 export {
13 isFollowStateValid
14 }