FIX: Show poll voters in Oneboxed posts. (#7768)

This commit is contained in:
Bianca Nenciu
2019-10-24 14:00:25 +03:00
committed by GitHub
parent e9897d295f
commit 690db4fd36
2 changed files with 27 additions and 14 deletions
@@ -165,7 +165,13 @@ export default class PostCooked {
ajax(`/posts/by_number/${topicId}/${postId}`)
.then(result => {
const post = this.decoratorHelper.getModel();
const quotedPosts = post.quoted || {};
quotedPosts[result.id] = result;
post.set("quoted", quotedPosts);
const div = $("<div class='expanded-quote'></div>");
div.data("post-id", result.id);
div.html(result.cooked);
_decorators.forEach(cb => cb(div, this.decoratorHelper));