mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 14:03:48 +03:00
Readded limit to replies relation
no issue Was accidentally committed with previous commit.
This commit is contained in:
parent
5c75997685
commit
7ddfa9a195
@ -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…
Reference in New Issue
Block a user