mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Only display accepted followers/followings in about page
This commit is contained in:
parent
d275e75453
commit
b8f4167fb6
11 changed files with 171 additions and 35 deletions
14
server/helpers/custom-validators/follows.ts
Normal file
14
server/helpers/custom-validators/follows.ts
Normal file
|
@ -0,0 +1,14 @@
|
|||
import { exists } from './misc'
|
||||
import { FollowState } from '@shared/models'
|
||||
|
||||
function isFollowStateValid (value: FollowState) {
|
||||
if (!exists(value)) return false
|
||||
|
||||
return value === 'pending' || value === 'accepted'
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
export {
|
||||
isFollowStateValid
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue