1
0
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:
Toby Zerner
2018-08-24 20:56:25 +09:30
parent 29cef23404
commit d47c406d9c
3 changed files with 3 additions and 3 deletions

View File

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