]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/helpers/custom-validators/follows.ts
Don't use safe mode when normalizing
[github/Chocobozzz/PeerTube.git] / server / helpers / custom-validators / follows.ts
index 8f65552c33ba48525972c0f6859076852b97dda6..0bec683c167481d07447b1388f786ef187c481a1 100644 (file)
@@ -4,7 +4,7 @@ import { FollowState } from '@shared/models'
 function isFollowStateValid (value: FollowState) {
   if (!exists(value)) return false
 
-  return value === 'pending' || value === 'accepted'
+  return value === 'pending' || value === 'accepted' || value === 'rejected'
 }
 
 function isRemoteHandleValid (value: string) {