1
0
Fork 0
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:
Chocobozzz 2019-11-28 11:37:32 +01:00
parent d275e75453
commit b8f4167fb6
No known key found for this signature in database
GPG key ID: 583A612D890159BE
11 changed files with 171 additions and 35 deletions

View 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
}