mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Readded limit to replies relation
no issue Was accidentally committed with previous commit.
This commit is contained in:
parent
5c75997685
commit
7ddfa9a195
1 changed files with 3 additions and 1 deletions
|
@ -52,7 +52,9 @@ const Comment = ghostBookshelf.Model.extend({
|
|||
|
||||
replies() {
|
||||
return this.hasMany('Comment', 'parent_id', 'id')
|
||||
.query('orderBy', 'created_at', 'ASC');
|
||||
.query('orderBy', 'created_at', 'ASC')
|
||||
// Note: this limit is not working
|
||||
.query('limit', 3);
|
||||
},
|
||||
|
||||
emitChange: function emitChange(event, options) {
|
||||
|
|
Loading…
Add table
Reference in a new issue