aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-08-09 12:26:58 +0000
committerrinpatch <rinpatch@sdf.org>2019-08-09 12:26:58 +0000
commit114b5f6effa3de813e047ee6b702a674e6ad07d5 (patch)
tree75a6a4158663b53c8232c41d07733522028441b8
parent5f3ac6625fef52adbb1cda5e1bd03863ed128580 (diff)
Apply suggestion to src/services/follow_manipulate/follow_manipulate.js
-rw-r--r--src/services/follow_manipulate/follow_manipulate.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/follow_manipulate/follow_manipulate.js b/src/services/follow_manipulate/follow_manipulate.js
index 26733e26..529fdb9b 100644
--- a/src/services/follow_manipulate/follow_manipulate.js
+++ b/src/services/follow_manipulate/follow_manipulate.js
@@ -6,7 +6,7 @@ const fetchUser = (attempt, user, store) => new Promise((resolve, reject) => {
.catch((e) => reject(e))
}, 500)
}).then(([following, sent, locked, attempt]) => {
- if (!following && !locked && attempt <= 3) {
+ if (!following && !(locked && sent) && attempt <= 3) {
// If we BE reports that we still not following that user - retry,
// increment attempts by one
return fetchUser(++attempt, user, store)