WordPress follow failure
-
@[email protected] Thought you might be interested... I attempted to follow @[email protected] 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.
-
-
@julian @evanprodromou yes, that is because the plugin processes the follow synchronously 🥸
thanks a lot for tweaking nodebb to be compatible and I will see how we can improve that!!!