File size: 469 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import 'calypso/state/comments/init';
/**
* Get total number of comments on the server for a given post
* @param {Object} state redux state
* @param {number} siteId site identification
* @param {number} postId site identification
* @returns {number} total comments count on the server. if not found, assume infinity
*/
export function getPostTotalCommentsCount( state, siteId, postId ) {
return state.comments.totalCommentsCount[ `${ siteId }-${ postId }` ];
}
|