From a60c6defe9048696eea57a576d49c81241b8e231 Mon Sep 17 00:00:00 2001 From: Yufan You Date: Thu, 18 Dec 2025 14:43:10 +0800 Subject: [PATCH 1/6] fix: remove the src attribute of atom:content The src attribute is to replace the inner content, not to mark its source. RFC4287: > 4.1.3.2. The "src" Attribute > > atom:content MAY have a "src" attribute, whose value MUST be an IRI > reference [RFC3987]. If the "src" attribute is present, atom:content > MUST be empty. Atom Processors MAY use the IRI to retrieve the > content and MAY choose to ignore remote content or to present it in a > different manner than local content. > > If the "src" attribute is present, the "type" attribute SHOULD be > provided and MUST be a MIME media type [MIMEREG], rather than "text", > "html", or "xhtml". The value is advisory; that is to say, when the > corresponding URI (mapped from an IRI, if necessary) is dereferenced, > if the server providing that content also provides a media type, the > server-provided media type is authoritative. --- lib/views/atom.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/views/atom.tsx b/lib/views/atom.tsx index e2565bfe3494..4d75d12e6871 100644 --- a/lib/views/atom.tsx +++ b/lib/views/atom.tsx @@ -21,9 +21,7 @@ const RSS: FC<{ data: Data }> = ({ data }) => ( {data.item?.map((item) => ( {item.title} - - {item.description} - + {item.description} {item.guid || item.link || item.title} {item.pubDate && {item.pubDate}} From 959b8ad759918aaef7ee907509f6efb9319562a7 Mon Sep 17 00:00:00 2001 From: Yufan You Date: Thu, 18 Dec 2025 15:16:16 +0800 Subject: [PATCH 2/6] fix: move to xml:lang --- lib/views/atom.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/views/atom.tsx b/lib/views/atom.tsx index 4d75d12e6871..1ceeba941be4 100644 --- a/lib/views/atom.tsx +++ b/lib/views/atom.tsx @@ -3,14 +3,13 @@ import type { FC } from 'hono/jsx'; import type { Data } from '@/types'; const RSS: FC<{ data: Data }> = ({ data }) => ( - + {data.title || 'RSSHub'} {data.id || data.link} {data.description || data.title} - Powered by RSSHub RSSHub contact@rsshub.app (RSSHub) - {data.language || 'en'} {data.lastBuildDate} {data.author || 'RSSHub'} From c0e8ce829348dc1856aee3ceae7c6637e64a020f Mon Sep 17 00:00:00 2001 From: Yufan You Date: Thu, 18 Dec 2025 15:17:00 +0800 Subject: [PATCH 3/6] fix: remove in atom --- lib/views/atom.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/views/atom.tsx b/lib/views/atom.tsx index 1ceeba941be4..069431ba3a5d 100644 --- a/lib/views/atom.tsx +++ b/lib/views/atom.tsx @@ -9,7 +9,6 @@ const RSS: FC<{ data: Data }> = ({ data }) => ( {data.id || data.link} {data.description || data.title} - Powered by RSSHub RSSHub - contact@rsshub.app (RSSHub) {data.lastBuildDate} {data.author || 'RSSHub'} From fa57cd128edbd292a68d221c72c90dccce9ffba7 Mon Sep 17 00:00:00 2001 From: Yufan You Date: Thu, 18 Dec 2025 15:21:24 +0800 Subject: [PATCH 4/6] fix: use ISO format to display date in atom & always have --- lib/views/atom.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/views/atom.tsx b/lib/views/atom.tsx index 069431ba3a5d..45eb9cc59478 100644 --- a/lib/views/atom.tsx +++ b/lib/views/atom.tsx @@ -22,8 +22,8 @@ const RSS: FC<{ data: Data }> = ({ data }) => ( {item.description} {item.guid || item.link || item.title} - {item.pubDate && {item.pubDate}} - {item.updated && {item.updated || item.pubDate}} + {item.pubDate && {new Date(item.pubDate).toISOString()}} + {new Date(item.updated || item.pubDate || new Date()).toISOString()} {item.author && ( {item.author} From 3a78fb7582b1da0dbf1e22158b4a7074e9b8f567 Mon Sep 17 00:00:00 2001 From: Yufan You Date: Thu, 18 Dec 2025 15:40:23 +0800 Subject: [PATCH 5/6] fix: use ISO date for feed in atom --- lib/views/atom.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/views/atom.tsx b/lib/views/atom.tsx index 45eb9cc59478..157ee382dcb1 100644 --- a/lib/views/atom.tsx +++ b/lib/views/atom.tsx @@ -9,7 +9,7 @@ const RSS: FC<{ data: Data }> = ({ data }) => ( {data.id || data.link} {data.description || data.title} - Powered by RSSHub RSSHub - {data.lastBuildDate} + {new Date(data.lastBuildDate || new Date()).toISOString()} {data.author || 'RSSHub'} From ab6f2bce327a96d62057f332b4749190e0560b26 Mon Sep 17 00:00:00 2001 From: Yufan You Date: Thu, 18 Dec 2025 15:44:55 +0800 Subject: [PATCH 6/6] fix: add for atom --- lib/views/atom.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/views/atom.tsx b/lib/views/atom.tsx index 157ee382dcb1..71ccabd688d5 100644 --- a/lib/views/atom.tsx +++ b/lib/views/atom.tsx @@ -5,7 +5,8 @@ import type { Data } from '@/types'; const RSS: FC<{ data: Data }> = ({ data }) => ( {data.title || 'RSSHub'} - + + {data.id || data.link} {data.description || data.title} - Powered by RSSHub RSSHub