FIX: Incorrect model for embedded post widget.

This commit is contained in:
Guo Xiang Tan
2016-06-21 17:41:53 +08:00
parent fc9cfd698d
commit 63b8797667
3 changed files with 12 additions and 3 deletions

View File

@@ -108,6 +108,7 @@ function initializePolls(api) {
_pollViews = postPollViews;
}
api.includePostAttributes("polls", "polls_votes");
api.decorateCooked(createPollViews, { onlyStream: true });
api.cleanupStream(cleanUpPollViews);
}