mirror of
https://github.com/flarum/core.git
synced 2025-08-04 15:37:51 +02:00
Rename discussion.commentsCount
This commit is contained in:
@@ -18,8 +18,8 @@ Object.assign(Discussion.prototype, {
|
||||
lastPost: Model.hasOne('lastPost'),
|
||||
lastPostNumber: Model.attribute('lastPostNumber'),
|
||||
|
||||
commentsCount: Model.attribute('commentsCount'),
|
||||
repliesCount: computed('commentsCount', commentsCount => Math.max(0, commentsCount - 1)),
|
||||
commentCount: Model.attribute('commentCount'),
|
||||
repliesCount: computed('commentCount', commentCount => Math.max(0, commentCount - 1)),
|
||||
posts: Model.hasMany('posts'),
|
||||
mostRelevantPost: Model.hasOne('mostRelevantPost'),
|
||||
|
||||
|
Reference in New Issue
Block a user