1
0
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:
Toby Zerner
2018-08-24 20:37:04 +09:30
parent e135b7830e
commit 7716944616
4 changed files with 8 additions and 8 deletions

View File

@@ -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'),