Skip to content

Commit

Permalink
feat: update descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Jul 23, 2024
1 parent 9586a2a commit 59e1900
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions lib/middleware/anti-hotlink.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const expects = {
`<a href="https://mock.com/DIYgod/RSSHub"></a>
<img src="https://mock.com/DIYgod/RSSHub.jpg" referrerpolicy="no-referrer">`,
],
desc: '<img src="http://mock.com/DIYgod/DIYgod/RSSHub"> - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)',
desc: '<img src="http://mock.com/DIYgod/DIYgod/RSSHub"> - Powered by RSSHub',
},
processed: {
items: [
Expand All @@ -54,7 +54,7 @@ const expects = {
`<a href="https://mock.com/DIYgod/RSSHub"></a>
<img src="https://i3.wp.com/mock.com/DIYgod/RSSHub.jpg" referrerpolicy="no-referrer">`,
],
desc: '<img src="https://i3.wp.com/mock.com/DIYgod/DIYgod/RSSHub"> - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)',
desc: '<img src="https://i3.wp.com/mock.com/DIYgod/DIYgod/RSSHub"> - Powered by RSSHub',
},
urlencoded: {
items: [
Expand All @@ -72,7 +72,7 @@ const expects = {
`<a href="https://mock.com/DIYgod/RSSHub"></a>
<img src="https://images.weserv.nl?url=https%3A%2F%2Fmock.com%2FDIYgod%2FRSSHub.jpg" referrerpolicy="no-referrer">`,
],
desc: '<img src="https://images.weserv.nl?url=http%3A%2F%2Fmock.com%2FDIYgod%2FDIYgod%2FRSSHub"> - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)',
desc: '<img src="https://images.weserv.nl?url=http%3A%2F%2Fmock.com%2FDIYgod%2FDIYgod%2FRSSHub"> - Powered by RSSHub',
},
},
multimedia: {
Expand All @@ -87,7 +87,7 @@ const expects = {
<audio src="https://mock.com/DIYgod/RSSHub.mp3"></audio>
<iframe src="https://mock.com/DIYgod/RSSHub.html" referrerpolicy="no-referrer"></iframe>`,
],
desc: '<video src="http://mock.com/DIYgod/DIYgod/RSSHub"></video> - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)',
desc: '<video src="http://mock.com/DIYgod/DIYgod/RSSHub"></video> - Powered by RSSHub',
},
relayed: {
items: [
Expand All @@ -100,7 +100,7 @@ const expects = {
<audio src="https://i3.wp.com/mock.com/DIYgod/RSSHub.mp3"></audio>
<iframe src="https://mock.com/DIYgod/RSSHub.html" referrerpolicy="no-referrer"></iframe>`,
],
desc: '<video src="https://i3.wp.com/mock.com/DIYgod/DIYgod/RSSHub"></video> - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)',
desc: '<video src="https://i3.wp.com/mock.com/DIYgod/DIYgod/RSSHub"></video> - Powered by RSSHub',
},
partlyRelayed: {
items: [
Expand All @@ -113,7 +113,7 @@ const expects = {
<audio src="https://i3.wp.com/mock.com/DIYgod/RSSHub.mp3"></audio>
<iframe src="https://mock.com/DIYgod/RSSHub.html" referrerpolicy="no-referrer"></iframe>`,
],
desc: '<video src="https://i3.wp.com/mock.com/DIYgod/DIYgod/RSSHub"></video> - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)',
desc: '<video src="https://i3.wp.com/mock.com/DIYgod/DIYgod/RSSHub"></video> - Powered by RSSHub',
},
},
};
Expand Down
4 changes: 2 additions & 2 deletions lib/views/atom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ const RSS: FC<{ data: Data }> = ({ data }) => (
<title>{data.title || 'RSSHub'}</title>
<link href={data.link || 'https://docs.rsshub.app'} />
<id>{data.id || data.link}</id>
<subtitle>{data.description || data.title} - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)</subtitle>
<subtitle>{data.description || data.title} - Powered by RSSHub</subtitle>
<generator>RSSHub</generator>
<webMaster>i@diygod.me (DIYgod)</webMaster>
<webMaster>contact@rsshub.app (RSSHub)</webMaster>
<language>{data.language || 'en'}</language>
<updated>{data.lastBuildDate}</updated>
<author>
Expand Down
2 changes: 1 addition & 1 deletion lib/views/json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const json = (data: Data) => {
title: data.title || 'RSSHub',
home_page_url: data.link || 'https://docs.rsshub.app',
feed_url: data.feedLink,
description: `${data.description || data.title} - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)`,
description: `${data.description || data.title} - Powered by RSSHub`,
icon: data.image,
authors: typeof data.author === 'string' ? [{ name: data.author }] : data.author,
language: data.language || 'zh-cn',
Expand Down
4 changes: 2 additions & 2 deletions lib/views/rss.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ const RSS: FC<{ data: Data }> = ({ data }) => {
<title>{data.title || 'RSSHub'}</title>
<link>{data.link || 'https://docs.rsshub.app'}</link>
<atom:link href={data.atomlink} rel="self" type="application/rss+xml" />
<description>{data.description || data.title} - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)</description>
<description>{data.description || data.title} - Powered by RSSHub</description>
<generator>RSSHub</generator>
<webMaster>i@diygod.me (DIYgod)</webMaster>
<webMaster>contact@rsshub.app (RSSHub)</webMaster>
{data.itunes_author && <itunes:author>{data.itunes_author}</itunes:author>}
{data.itunes_category && <itunes:category text={data.itunes_category} />}
{data.itunes_author && <itunes:explicit>{data.itunes_explicit || 'false'}</itunes:explicit>}
Expand Down

0 comments on commit 59e1900

Please sign in to comment.