X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fhelpers%2Fcustom-validators%2Ffollows.ts;h=0bec683c167481d07447b1388f786ef187c481a1;hb=edacb640332eae37665551d35bf29160707336f0;hp=8f65552c33ba48525972c0f6859076852b97dda6;hpb=4d029ef8ec3d5274eeaa3ee6d808eb7035e7faef;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/helpers/custom-validators/follows.ts b/server/helpers/custom-validators/follows.ts index 8f65552c3..0bec683c1 100644 --- a/server/helpers/custom-validators/follows.ts +++ b/server/helpers/custom-validators/follows.ts @@ -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) {