allow limiting video-comments rss feeds to an account or video channel
[oweals/peertube.git] / server / helpers / custom-validators / accounts.ts
1 import { isUserDescriptionValid, isUserUsernameValid } from './users'
2 import { exists } from './misc'
3
4 function isAccountNameValid (value: string) {
5   return isUserUsernameValid(value)
6 }
7
8 function isAccountIdValid (value: string) {
9   return exists(value)
10 }
11
12 function isAccountDescriptionValid (value: string) {
13   return isUserDescriptionValid(value)
14 }
15
16 // ---------------------------------------------------------------------------
17
18 export {
19   isAccountIdValid,
20   isAccountDescriptionValid,
21   isAccountNameValid
22 }