feat(api/rss3): change platform to RSSHub

This commit is contained in:
pseudoyu 2024-11-28 17:13:56 +08:00
parent e08ad948da
commit bcc2a05e0b
No known key found for this signature in database
2 changed files with 5 additions and 3 deletions

View File

@ -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: {

View File

@ -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: {