Skip to content

fix: delete old follow request (if exists) before creating new

Kaity A requested to merge fix/failed-follow into develop

What does this PR do?

In rare cases, a follow request can fail (due to DB error, Crash or API failure) and leave a dangling follow request.

Subsequent follows will throw a query error when it tries to add the follow request back to the database again and prevent the follower from following that followee forever.

This change makes it so that when a new follow request is created, the old one (if it exists) is removed first.

Contribution Guidelines By submitting this merge request, you agree to follow our Contribution Guidelines

  • I agree to follow this project's Contribution Guidelines
  • I have made sure to test this pull request

Merge request reports