Skip to content

Commit

Permalink
fix(podcast): trust html & only render image if there is one
Browse files Browse the repository at this point in the history
  • Loading branch information
42tte committed Sep 7, 2024
1 parent 28d22f5 commit 3a837c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rss/feed/Podcast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function Podcast({ item }: { item: PodcastItem }) {
return (
<div className={and(style.card, style['card--podcast'])}>
<div className={style.media}>
<BaseBlob
{item.imageCoverUrl && <BaseBlob
height={200}
width={200}
randomness={2}
Expand All @@ -21,7 +21,7 @@ export default function Podcast({ item }: { item: PodcastItem }) {
loading: 'lazy',
decoding: 'async',
}}
/>
/>}
</div>
<div className={style.text}>
<div className={style.podcast__content}>
Expand All @@ -40,7 +40,7 @@ export default function Podcast({ item }: { item: PodcastItem }) {
</div>
</Player>
<div className={style.published}>Publisert {item.publishDate}</div>
<p className={style.summary}>{item.description}</p>
<div dangerouslySetInnerHTML={{ __html: item.description }} />
</div>
</div>
</div>
Expand Down

0 comments on commit 3a837c4

Please sign in to comment.