diff options
| author | rr- | 2016-08-21 20:11:14 +0200 |
|---|---|---|
| committer | rr- | 2016-08-21 20:11:38 +0200 |
| commit | f0ed82b0deaf817ab4e65a3e840704ee1f41b306 (patch) | |
| tree | 1cf7b7d79a5df6bb3028b91c485f71058b8fbbd6 /client/js/models | |
| parent | dbd36256ce12224818fe2885914b147d3e28d1bc (diff) | |
client/models: fix post list missing comment count
Diffstat (limited to 'client/js/models')
| -rw-r--r-- | client/js/models/post.js | 2 |
1 files changed, 2 insertions, 0 deletions
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, |