Skip to content

Commit

Permalink
feat(api/rss3): change platform to RSSHub
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudoyu committed Nov 28, 2024
1 parent e08ad94 commit bcc2a05
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/views/rss3.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down Expand Up @@ -48,7 +49,7 @@ describe('rss3', () => {
{
tag: TAG,
type: TYPE,
platform: 'example.com',
platform: PLATFORM,
from: 'example.com',
to: 'example.com',
metadata: {
Expand Down Expand Up @@ -77,7 +78,7 @@ describe('rss3', () => {
{
tag: TAG,
type: TYPE,
platform: 'example.com',
platform: PLATFORM,
from: 'example.com',
to: 'example.com',
metadata: {
Expand Down
3 changes: 2 additions & 1 deletion lib/views/rss3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -29,7 +30,7 @@ const rss3 = (data) => {
{
tag: TAG,
type: TYPE,
platform: owner,
platform: PLATFORM,
from: owner,
to: owner,
metadata: {
Expand Down

0 comments on commit bcc2a05

Please sign in to comment.