Skip to content

Commit 3327a9d

Browse files
authored
Merge pull request #7 from xwcoder/feature/update
feat(reader): parse atom updated field
2 parents af70820 + 6827f67 commit 3327a9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/node/feed.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const parseAtom = (xml: any): Omit<Feed, 'url'> => {
3333
title: gettrim(v, 'title[0]'),
3434
url: gettrim(v, 'link[0].$.href', ''),
3535
content: gettrim(v, 'content[0]_', ''),
36-
pubTime: gettrim(v, 'published[0]'),
36+
pubTime: gettrim(v, 'published[0]') || gettrim(v, 'updated[0]'),
3737
})),
3838
}
3939
}

0 commit comments

Comments
 (0)