feat(rss-feed): add periodic live updates (#5449)

This commit is contained in:
Meier Lukas authored and GitHub committed 2026-04-09 22:45:44 +02:00
1 parent bdf9439e49
commit faffb818f9
4 files changed
+83 -45

No files matched your search

+2 -1
View File
@@ -28,7 +28,7 @@ export const rssFeedsRequestHandler = createCachedWidgetRequestHandler({
return {
...result,
entries: result.entries?.slice(0, input.count) ?? [],
entries: result.entries?.map((entry) => ({ ...entry, feedUrl: input.url })).slice(0, input.count) ?? [],
};
},
cacheDuration: dayjs.duration(5, "minutes"),
@@ -109,6 +109,7 @@ const getFirstMediaProperty = (feedObject: object) => {
* This interface adds properties on top of the default ones.
*/
export interface ExtendedFeedEntry extends FeedEntry {
feedUrl: string;
enclosure?: string;
}