client/models: fix post list missing comment count

This commit is contained in:
rr- 2016-08-21 20:11:14 +02:00
parent dbd36256ce
commit f0ed82b0de

View file

@ -35,6 +35,7 @@ class Post extends events.EventTarget {
get relations() { return this._relations; } get relations() { return this._relations; }
get score() { return this._score; } get score() { return this._score; }
get commentCount() { return this._commentCount; }
get favoriteCount() { return this._favoriteCount; } get favoriteCount() { return this._favoriteCount; }
get ownFavorite() { return this._ownFavorite; } get ownFavorite() { return this._ownFavorite; }
get ownScore() { return this._ownScore; } get ownScore() { return this._ownScore; }
@ -257,6 +258,7 @@ class Post extends events.EventTarget {
_relations: [...response.relations || []], _relations: [...response.relations || []],
_score: response.score, _score: response.score,
_commentCount: response.commentCount,
_favoriteCount: response.favoriteCount, _favoriteCount: response.favoriteCount,
_ownScore: response.ownScore, _ownScore: response.ownScore,
_ownFavorite: response.ownFavorite, _ownFavorite: response.ownFavorite,