chore: add images on rss builder

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei
2024-08-28 20:54:45 +08:00
parent 38aca6c8ca
commit 621a66a60c
2 changed files with 5 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
import type { ImageModel } from '~/shared/model/image.model'
export interface RSSProps {
title: string
url: string
@@ -10,5 +12,6 @@ export interface RSSProps {
title: string
text: string
id: string
images: ImageModel[]
}[]
}

View File

@@ -333,6 +333,7 @@ export class AggregateService {
created: post.created!,
modified: post.modified,
link: baseURL + this.urlService.build(post),
images: post.images || [],
}
})
const notesRss: RSSProps['data'] = notes.map((note) => {
@@ -343,6 +344,7 @@ export class AggregateService {
created: note.created!,
modified: note.modified,
link: baseURL + this.urlService.build(note),
images: note.images || [],
}
})