Commit 5f3ac662 authored by rinpatch's avatar rinpatch

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

parent e83b321f
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment