Skip to content

Commit

Permalink
Send username as author filter value instead of id.
Browse files Browse the repository at this point in the history
For consistency with the Discussion AuthorFilterGambit, this should be sent usernames, not numerical ids.
  • Loading branch information
askvortsov1 committed Mar 8, 2021
1 parent d0ffa26 commit 30017ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/forum/components/PostsUserPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export default class PostsUserPage extends UserPage {
loadResults(offset) {
return app.store.find('posts', {
filter: {
author: this.user.id(),
author: this.user.username(),
type: 'comment',
},
page: { offset, limit: this.loadLimit },
Expand Down

0 comments on commit 30017ee

Please sign in to comment.