Merge pull request #4285 from tgxworld/fix_polls_not_cooked

FIX: Incorrect model for embedded post widget.
This commit is contained in:
Guo Xiang Tan
2016-06-27 13:31:03 +08:00
committed by GitHub
3 changed files with 12 additions and 3 deletions
@@ -108,6 +108,7 @@ function initializePolls(api) {
_pollViews = postPollViews;
}
api.includePostAttributes("polls", "polls_votes");
api.decorateCooked(createPollViews, { onlyStream: true });
api.cleanupStream(cleanUpPollViews);
}