diff --git a/lib/views/rss3.test.ts b/lib/views/rss3.test.ts index 52518b99e69472..c226cd2a980c20 100644 --- a/lib/views/rss3.test.ts +++ b/lib/views/rss3.test.ts @@ -4,6 +4,7 @@ import rss3 from './rss3'; const NETWORK = 'rsshub'; const TAG = 'RSS'; const TYPE = 'feed'; +const PLATFORM = 'RSSHub'; describe('rss3', () => { it('should return UMS Result', () => { @@ -48,7 +49,7 @@ describe('rss3', () => { { tag: TAG, type: TYPE, - platform: 'example.com', + platform: PLATFORM, from: 'example.com', to: 'example.com', metadata: { @@ -77,7 +78,7 @@ describe('rss3', () => { { tag: TAG, type: TYPE, - platform: 'example.com', + platform: PLATFORM, from: 'example.com', to: 'example.com', metadata: { diff --git a/lib/views/rss3.ts b/lib/views/rss3.ts index 0e7c9734f09d6a..3b0a26840b4ec6 100644 --- a/lib/views/rss3.ts +++ b/lib/views/rss3.ts @@ -9,6 +9,7 @@ import dayjs from 'dayjs'; const NETWORK = 'rsshub'; const TAG = 'RSS'; const TYPE = 'feed'; +const PLATFORM = 'RSSHub'; const rss3 = (data) => { const currentUnixTsp = dayjs().unix(); @@ -29,7 +30,7 @@ const rss3 = (data) => { { tag: TAG, type: TYPE, - platform: owner, + platform: PLATFORM, from: owner, to: owner, metadata: {