diff options
author | Chocobozzz <me@florianbigard.com> | 2022-07-26 14:46:15 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-07-27 13:52:13 +0200 |
commit | 927fa4b11f692174d6296aa096d7a74bacdeea8b (patch) | |
tree | 20866dda219bbb5504d5645a980565fbbc25398a /server/initializers | |
parent | 0f58b11f5cace6e57cab5b4a18380eb297b43fe4 (diff) | |
download | PeerTube-927fa4b11f692174d6296aa096d7a74bacdeea8b.tar.gz PeerTube-927fa4b11f692174d6296aa096d7a74bacdeea8b.tar.zst PeerTube-927fa4b11f692174d6296aa096d7a74bacdeea8b.zip |
Add rejected state to follows
Prevent reprocessing already rejected follows
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/constants.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index e3f7ceb4a..99ae64f8d 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -129,7 +129,8 @@ const ACTOR_FOLLOW_SCORE = { | |||
129 | 129 | ||
130 | const FOLLOW_STATES: { [ id: string ]: FollowState } = { | 130 | const FOLLOW_STATES: { [ id: string ]: FollowState } = { |
131 | PENDING: 'pending', | 131 | PENDING: 'pending', |
132 | ACCEPTED: 'accepted' | 132 | ACCEPTED: 'accepted', |
133 | REJECTED: 'rejected' | ||
133 | } | 134 | } |
134 | 135 | ||
135 | const REMOTE_SCHEME = { | 136 | const REMOTE_SCHEME = { |