By the way, I meant that you basically have a POST request in which you can modify the ‘user_id’ variable and the UI of the website doesn’t check what happened on the server side and changes the button to the ‘following’ state. When it’s refreshed it reloads the info from the server so it shows the real status of the button.