LemmyNet / lemmy-ui

The official web app for lemmy.
https://join-lemmy.org/
GNU Affero General Public License v3.0
892 stars 334 forks source link

Subscribe button does not change to "Subscription Pending" until you refresh the page #1625

Open bonsairobo opened 1 year ago

bonsairobo commented 1 year ago

Requirements

Summary

See title. I think this only applies to communities on other instances, or perhaps any community that requires confirmation of subscriptions. I can't reproduce this on most local communities (I'm on lemmy.ml), but I can reproduce on federated instances (e.g. kbin.social and beehaw.org).

Steps to Reproduce

  1. Navigate to a community on another instance (e.g. https://lemmy.ml/c/news@beehaw.org)
  2. Make sure you aren't already subscribed
  3. Click the "Subscribe" button
  4. Observe that nothing happens
  5. Refresh the page and see the button changes to "Subscription Pending"

Technical Details

Firefox 114.0.1 on Manjaro Linux

Lemmy Instance Version

0.18.0

Lemmy Instance URL

https://lemmy.ml

snaggen commented 1 year ago

I saw this on 0.17 also. If I then clicked the button to subscribe, nothing happened. I then clicked another time, and then it got in to the subscribe pending state. However, it seemed to have been stuck in that state forever... so the second click seemed to have gotten my subscription request in some wierd state. Today, I went throught all my subscriptions in a bad state, clicked the "Subscription pending" button to reset, and then reload the page and clicked subscribe again (still nothing was shown, but now I just left) and that got my subscriptions in the expected state.