mirror of
https://github.com/flarum/core.git
synced 2025-10-12 15:34:26 +02:00
Rename discussion.repliesCount
This commit is contained in:
@@ -19,7 +19,7 @@ Object.assign(Discussion.prototype, {
|
||||
lastPostNumber: Model.attribute('lastPostNumber'),
|
||||
|
||||
commentCount: Model.attribute('commentCount'),
|
||||
repliesCount: computed('commentCount', commentCount => Math.max(0, commentCount - 1)),
|
||||
replyCount: computed('commentCount', commentCount => Math.max(0, commentCount - 1)),
|
||||
posts: Model.hasMany('posts'),
|
||||
mostRelevantPost: Model.hasOne('mostRelevantPost'),
|
||||
|
||||
|
Reference in New Issue
Block a user