Skip to content

MastoAPI can return following AND follow requested relationships at the same time

On endpoint: https://letsalllovela.in/api/v1/accounts/relationships?id[]=<id>

[
  {
    "blocking": false,
    "domain_blocking": false,
    "endorsed": false,
    "followed_by": false,
    "following": true,
    "id": "9igJNHkszjKbkXxd2m",
    "muting": false,
    "muting_notifications": false,
    "requested": true,
    "showing_reblogs": true,
    "subscribing": false
  }
]

Both requested and following are true at the same time, and despite already following the user, this creates a UI bug which shows the user as follow pending:

image