1
0
mirror of https://github.com/flarum/core.git synced 2025-01-17 14:18:33 +01: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:
Alexander Skvortsov 2021-03-08 16:29:48 -05:00
parent d0ffa26b0b
commit 30017eef09

View File

@ -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 },