From f5d4d8a963c264409eccd070af152ccb247f559e Mon Sep 17 00:00:00 2001 From: Kuba Suder Date: Fri, 17 May 2024 21:24:48 +0200 Subject: [PATCH] render facets and embeds in loaded blocked posts --- post_component.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/post_component.js b/post_component.js index 2b34cff..b9bd825 100644 --- a/post_component.js +++ b/post_component.js @@ -349,8 +349,13 @@ class PostComponent { div.appendChild(p); } - let p = $tag('p', { text: this.post.text }); + let p = this.buildPostBody(); div.appendChild(p); + + if (this.post.embed) { + let embed = new EmbedComponent(this.post, this.post.embed).buildElement(); + div.appendChild(embed); + } } /** @param {AnyElement} div */ -- 2.51.2