From 5f3ac6625fef52adbb1cda5e1bd03863ed128580 Mon Sep 17 00:00:00 2001 From: rinpatch Date: Fri, 9 Aug 2019 12:25:58 +0000 Subject: [PATCH] Apply suggestion to src/services/follow_manipulate/follow_manipulate.js --- src/services/follow_manipulate/follow_manipulate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/follow_manipulate/follow_manipulate.js b/src/services/follow_manipulate/follow_manipulate.js index bd8ae979f5..26733e2673 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