Skip to content

Commit

Permalink
fix: set locked attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
markusahlstrand committed May 22, 2024
1 parent 734fcc0 commit d2a7493
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/serialize-feed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ function renderItem(episode: SesamyFeedEpisode) {
pubDate: utcDate(episode.publishDate)!,
};

if (episode.isLocked) {
item['@_locked'] = true;
}

if (episode.image) {
item['itunes:image'] = {
'@_href': episode.image,
Expand Down

0 comments on commit d2a7493

Please sign in to comment.