diff options
author | Chocobozzz <me@florianbigard.com> | 2018-01-11 11:40:18 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-11 11:47:44 +0100 |
commit | 7bc29171456ffa91c7ec8dc77e892c7dca359989 (patch) | |
tree | c7682072919bf00f8b082c1c49f24567e181800f /server/controllers | |
parent | 85cd9bde5a93500f973773f46680c07dd90d5912 (diff) | |
download | PeerTube-7bc29171456ffa91c7ec8dc77e892c7dca359989.tar.gz PeerTube-7bc29171456ffa91c7ec8dc77e892c7dca359989.tar.zst PeerTube-7bc29171456ffa91c7ec8dc77e892c7dca359989.zip |
Add tests to handle down server
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/api/server/follows.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/server/controllers/api/server/follows.ts b/server/controllers/api/server/follows.ts index c87107197..b93d8a816 100644 --- a/server/controllers/api/server/follows.ts +++ b/server/controllers/api/server/follows.ts | |||
@@ -124,9 +124,7 @@ function follow (fromActor: ActorModel, targetActor: ActorModel) { | |||
124 | actorFollow.ActorFollower = fromActor | 124 | actorFollow.ActorFollower = fromActor |
125 | 125 | ||
126 | // Send a notification to remote server | 126 | // Send a notification to remote server |
127 | if (actorFollow.state === 'pending') { | 127 | await sendFollow(actorFollow, t) |
128 | await sendFollow(actorFollow, t) | ||
129 | } | ||
130 | }) | 128 | }) |
131 | } | 129 | } |
132 | 130 | ||