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

Use author filter parameter instead of q with gambit to get a user's discussions on the DiscussionsUserPage #3068

Merged
merged 1 commit into from
Sep 11, 2021

Conversation

iPurpl3x
Copy link
Contributor

@iPurpl3x iPurpl3x commented Sep 8, 2021

Changes proposed in this pull request:
Changed the way the request for listing discussions on the user profile is constructed: before a gambit was used with the q filter parameter, now the author parameter is used instead. This makes it possible for extensions to use other filter parameters for this request because if the q parameter is used, all the other filter parameters are ignored.

Reviewers should focus on:
Checking if DiscussionsUserPage still works as expected.

Confirmed

  • Frontend changes: tested on a local Flarum installation.
  • Backend changes: tests are green (run composer test).

…r's discussions on the `DiscussionsUserPage`
@SychO9 SychO9 merged commit 1b19319 into flarum:master Sep 11, 2021
@SychO9 SychO9 added this to the 1.1 milestone Sep 11, 2021
askvortsov1 added a commit that referenced this pull request Oct 7, 2021
#3068 accidentially broke the user discussions page, as up until this commit, `DiscussionListState`didn't accept any filter params.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants