FluentCommunity 2.12.0: after joining a space, the comment box still says "Please join the Space to post a comment"
Hello,
Our members often can't comment right after they join a space on our FluentCommunity site (FluentCommunity and Pro 2.12.0, all spaces public, page cache bypassed for logged-in users).
Steps to reproduce
- As a member who isn't in a public space, open the space and click Join in the space header.
- The membership is created on the server (status active), but the page doesn't update and the Join button stays visible.
- Click Join again. POST /spaces/{slug}/join returns 422 "You are already a member of this space. Please reload this page".
- Click Comment on a post. The portal shows "Please join the Space to post a comment."
Leaving the space and joining through the comment box's Join button works, because that path reloads the page.
What we found
The comment check (hasCommentPermission β hasSpaceAccess) reads fluentComAdmin.user_membership_slugs, which only refreshes on page load. The space header's join() adds the slug to that list only when the response has membership.status === "active". In our case it wasn't added, and the second click errors without updating it either. A 422 "already a member" could also update the local state instead of leaving it stale.
For now we've added a snippet that reloads the page after a join. We'd be grateful for a fix in a future release.
Thanks,
Robin Mudge
Documentary Studio, doc.unseenpress.org
Disable your cache extension for the entire Fluent Community. You don't need it π
Dragan STAMENKOVICΒ Do you have any experience with LiteSpeed Cache... How to deactivate the entire community there? Thanks
thanks