diff --git a/client/js/models/post.js b/client/js/models/post.js index c3bc92e..9c1256e 100644 --- a/client/js/models/post.js +++ b/client/js/models/post.js @@ -35,6 +35,7 @@ class Post extends events.EventTarget { get relations() { return this._relations; } get score() { return this._score; } + get commentCount() { return this._commentCount; } get favoriteCount() { return this._favoriteCount; } get ownFavorite() { return this._ownFavorite; } get ownScore() { return this._ownScore; } @@ -257,6 +258,7 @@ class Post extends events.EventTarget { _relations: [...response.relations || []], _score: response.score, + _commentCount: response.commentCount, _favoriteCount: response.favoriteCount, _ownScore: response.ownScore, _ownFavorite: response.ownFavorite,