Apply suggestion to src/services/follow_manipulate/follow_manipulate.js

This commit is contained in:
rinpatch 2019-08-09 12:25:58 +00:00
parent e83b321ff2
commit 5f3ac6625f

View File

@ -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