If we don't have any posts for a channel, pull page rather than pulling latest.

Этот коммит содержится в:
JoramWilander
2015-08-27 12:56:15 -04:00
родитель 305a74c78d
Коммит a6c7fe76a5

Просмотреть файл

@@ -412,6 +412,11 @@ function getPosts(id) {
return;
}
if (PostStore.getCurrentPosts() == null) {
module.exports.getPostsPage(true, id, Constants.POST_CHUNK_SIZE);
return;
}
var latestUpdate = PostStore.getLatestUpdate(channelId);
callTracker['getPosts_' + channelId] = utils.getTimestamp();