Apply suggestion to src/services/follow_manipulate/follow_manipulate.js
This commit is contained in:
parent
e83b321ff2
commit
5f3ac6625f
|
@ -21,7 +21,7 @@ export const requestFollow = (user, store) => new Promise((resolve, reject) => {
|
||||||
.then((updated) => {
|
.then((updated) => {
|
||||||
store.commit('updateUserRelationship', [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.
|
// If we get result immediately or the account is locked, just stop.
|
||||||
resolve({ sent: updated.requested })
|
resolve({ sent: updated.requested })
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue