mirror of
https://github.com/flarum/core.git
synced 2025-08-03 06:57:54 +02: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:
@@ -121,7 +121,7 @@ export default class PostsUserPage extends UserPage {
|
|||||||
loadResults(offset) {
|
loadResults(offset) {
|
||||||
return app.store.find('posts', {
|
return app.store.find('posts', {
|
||||||
filter: {
|
filter: {
|
||||||
author: this.user.id(),
|
author: this.user.username(),
|
||||||
type: 'comment',
|
type: 'comment',
|
||||||
},
|
},
|
||||||
page: { offset, limit: this.loadLimit },
|
page: { offset, limit: this.loadLimit },
|
||||||
|
Reference in New Issue
Block a user