Fix sent follow request detection
This fixes `requestFollow` using the relationship instead of user object, resulting in `sent` always being false for locked users, and also removes assumptions about follow request being sent, instead relying on `requested` from user relationship.
This commit is contained in:
parent
a45f258a2c
commit
766bcc2a72
2 changed files with 11 additions and 20 deletions
|
@ -65,6 +65,7 @@ export const parseUser = (data) => {
|
|||
|
||||
if (relationship) {
|
||||
output.follows_you = relationship.followed_by
|
||||
output.requested = relationship.requested
|
||||
output.following = relationship.following
|
||||
output.statusnet_blocking = relationship.blocking
|
||||
output.muted = relationship.muting
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue