Skip to content

Commit

Permalink
fix: fill image from itunes_item_image (DIYgod#16694)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoban authored Sep 10, 2024
1 parent 7a18fb2 commit 879772a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/middleware/template.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ const middleware: MiddlewareHandler = async (ctx, next) => {
item.pubDate && (item.pubDate = convertDateToISO8601(item.pubDate) || '');
item.updated && (item.updated = convertDateToISO8601(item.updated) || '');
}

if (item.itunes_item_image) {
item.image = item.itunes_item_image;
}
}
}
}
Expand Down

0 comments on commit 879772a

Please sign in to comment.