Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When creating a post, the community is only validated if you enter the name and click it #101

Open
asimons04 opened this issue Aug 16, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@asimons04
Copy link

asimons04 commented Aug 16, 2023

Describe the bug
When creating a new post, you have to enter the display name of the community and click it from the list. If you enter the canonical community name (e.g. community@instance.tld) it will not validate and you cannot post. The toast message says that a community must be selected.

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

  1. Click Create -> Post
  2. Type in the canonical name of the community you want to post in (e.g. news@instance.tld)
  3. Fill in the rest of the post details
  4. Try to submit
  5. Yellow warning toast pops up in corner saying "You need to set a community"

Expected behavior
The form should recognize that a valid community has been provided.

Versions

  • Browser: Chromium / Firefox
  • Photon version: 0.8.4
@asimons04
Copy link
Author

Also, creating a new post from the community page (/c/community@tld) sometimes does not behave consistently/correctly.

Steps to reproduce (again, this is inconsistent, so it may take a few tries):

  1. Click a community from the sidebar
  2. From the navbar, click Create -> New Post
  3. Check the "Community" field in the /create/post form that is rendered.

There are three different behaviors I've observed:

  1. The community is correct and validated (has the green check). This is the expected behavior and occurs most of the time.
  2. Sometimes it's the wrong community entirely (typically one you've browsed earlier).
  3. The community is pre-filled correctly, but there is no green check and submitting the post warns you that "You need to set a community".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant