Remove image from rss feed

This commit is contained in:
Ryan Freeman 2023-08-07 20:49:14 +01:00
parent 7d9820af01
commit 4ad8f6dc4e

View File

@ -33,14 +33,12 @@ export async function GET(req: NextRequest) {
let _article = $('article').first()
let title = _article.find('h1').first().text()
let date = _article.find('time').first().attr('datetime') ?? new Date()
let image = _article.find('image').first().html() ?? ""
let content = _article.find('.prose').first().html() ?? ""
feed.addItem({
title,
id: url,
link: url,
image,
content,
author: [author],
contributor: [author],