diff --git a/views/static/feed-item.js b/views/static/feed-item.js index 92c6129..e89eeee 100644 --- a/views/static/feed-item.js +++ b/views/static/feed-item.js @@ -64,6 +64,11 @@ class FeedItem extends HTMLElement { [...this.shadowRoot.querySelectorAll('a[href^=http]')].forEach(a => { a.setAttribute("target", "_blank"); a.setAttribute("rel", "noopener"); + }); + [...this.shadowRoot.querySelectorAll('p')].forEach(p => { + if (p.innerText.trim() == "") { + p.remove(); + } }) })