Skip to content
  • Categories
  • Recent
  • Popular
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

NodeBB-ActivityPub Bridge Test Instance

  1. Home
  2. Categories
  3. General Discussion
  4. AP Test (community.nodebb.org)
  5. WordPress follow failure

WordPress follow failure

Scheduled Pinned Locked Moved AP Test (community.nodebb.org)
activitypubwordpress
2 Posts 2 Posters 21 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • julian@community.nodebb.orgJ This user is from outside of this forum
    julian@community.nodebb.orgJ This user is from outside of this forum
    julian@community.nodebb.org
    wrote on last edited by
    #1

    @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 the Accept, 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.

    1 Reply Last reply
    0
    • pfefferle@mastodon.socialP This user is from outside of this forum
      pfefferle@mastodon.socialP This user is from outside of this forum
      pfefferle@mastodon.social
      wrote on last edited by
      #2

      @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!!!

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Login or register to search.
      Powered by NodeBB Contributors
      • First post
        Last post
      0
      • Categories
      • Recent
      • Popular