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

FIX: ensures users can open channel invites #24067

Merged
merged 9 commits into from Oct 24, 2023

Conversation

jjaffeux
Copy link
Contributor

@jjaffeux jjaffeux commented Oct 23, 2023

We were incorrectly generating URLs with message id even when it was not provided, resulting in a route ending with "undefined", which was causing an error.

This commit also uses this opportunity to:

  • move invite_users into a proper controller inside the API namespace
  • refactors the code into a service: Chat::InviteUsersToChannel

@github-actions github-actions bot added the chat PRs which include a change to Chat plugin label Oct 23, 2023
We were incorrectly generating URLs with message id even when it was not provider resulting in a route ending with "undefined", which was causing an error.

This commit also uses this opportunity to:
- move `invite_users` into a proper controller inside the API namespace
- refactors the code into a service: `Chat::InviteUsersToChannel`
@jjaffeux jjaffeux marked this pull request as ready for review October 24, 2023 09:40
@dbattersby
Copy link
Contributor

Nice work, some small comments but overall looks great 👍

@jjaffeux jjaffeux merged commit 5fec841 into discourse:main Oct 24, 2023
13 checks passed
@jjaffeux jjaffeux deleted the invite-user branch October 24, 2023 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chat PRs which include a change to Chat plugin
3 participants