aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-08-09 12:25:58 +0000
committerrinpatch <rinpatch@sdf.org>2019-08-09 12:25:58 +0000
commit5f3ac6625fef52adbb1cda5e1bd03863ed128580 (patch)
treeaba8f1bf12cbd007c8783a9fff4c92c56ed119a8
parente83b321ff296dc7c3d8eba52a416ecc13a54e141 (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 bd8ae979..26733e26 100644
--- a/src/services/follow_manipulate/follow_manipulate.js
+++ b/src/services/follow_manipulate/follow_manipulate.js
@@ -21,7 +21,7 @@ export const requestFollow = (user, store) => new Promise((resolve, reject) => {
.then((updated) => {
store.commit('updateUserRelationship', [updated])
- if (updated.following || user.locked) {
+ if (updated.following || (user.locked && user.requested)) {
// If we get result immediately or the account is locked, just stop.
resolve({ sent: updated.requested })
return