Xyphyn / photon

An opinionated web client for Lemmy to help users discover the fediverse.
https://phtn.app
GNU Affero General Public License v3.0
389 stars 43 forks source link

When creating a post, the Community field is sometimes populated by the community visited just before #453

Open 4lk opened 2 months ago

4lk commented 2 months ago

Describe the bug Imagine going from a community A to a community B. While being in community B I want to post something, it will be posted to community A. This happens sometimes, not always. While preparing the post, the field "Community" that should contain the name of the community one is navigating (in our case B), it sometimes shows the one visited previously (in our case A)

To Reproduce (if applicable) Steps to reproduce the behavior:

  1. Select a community you are subscribed (from the sidebar) and scroll down a bit, and then scroll up
  2. Select another community you are subscribed (from the sidebar) and click on the top right button "+ Create"
  3. Form the dropdown menu click on "Post"
  4. See the "Community" field

Expected behavior Since the "Community field" is automatically populated (which is great!) I would expect to see the community I am currently in.

Video https://github.com/user-attachments/assets/d2138629-b97a-4f18-8168-e5c346aec29f

Versions Linux Mint 21.3 Cinnamon - Version 6.0.4 Browser: 6.9.3447.46 (Stable channel) stable (64-bit) Photon version: 1.31.4