mirror of
https://github.com/flarum/framework.git
synced 2024-11-26 02:10:09 +08:00
Send username as author filter value instead of id.
For consistency with the Discussion AuthorFilterGambit, this should be sent usernames, not numerical ids.
This commit is contained in:
parent
3e8c9dc185
commit
74e9276579
|
@ -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 },
|
||||
|
|
Loading…
Reference in New Issue
Block a user