WordPress follow failure
-
@pfefferle@mastodon.social Thought you might be interested... I attempted to follow @evanprodromou@socialwebfoundation.org from NodeBB and found a fun little race condition!
NodeBB sends the follow and waits for the request to complete before recording the details of the follow (for backreferencing the eventual accept).
WordPress seems to fire back theAccept
, and then wraps up the response.I imagine a lot of implementors do the same, but it just so happens that WordPress' response time (or at least the swf site's) is juuust slow enough to reliably have the
Accept
come in before the Follow finishes.So NodeBB hadn't recorded the follow request when it received the Accept, so the follow failed
I've adjusted my code now so the backreference is saved before sending the Follow.