From 927fa4b11f692174d6296aa096d7a74bacdeea8b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 26 Jul 2022 14:46:15 +0200 Subject: Add rejected state to follows Prevent reprocessing already rejected follows --- server/helpers/custom-validators/follows.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/helpers') 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) { -- cgit v1.2.3