diff options
| author | rinpatch <rinpatch@sdf.org> | 2019-08-09 12:25:58 +0000 |
|---|---|---|
| committer | rinpatch <rinpatch@sdf.org> | 2019-08-09 12:25:58 +0000 |
| commit | 5f3ac6625fef52adbb1cda5e1bd03863ed128580 (patch) | |
| tree | aba8f1bf12cbd007c8783a9fff4c92c56ed119a8 /src | |
| parent | e83b321ff296dc7c3d8eba52a416ecc13a54e141 (diff) | |
Apply suggestion to src/services/follow_manipulate/follow_manipulate.js
Diffstat (limited to 'src')
| -rw-r--r-- | src/services/follow_manipulate/follow_manipulate.js | 2 |
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 |
