Skip to content

Commit 6827f67

Browse files
committed
feat(reader): parse atom updated field
1 parent af70820 commit 6827f67

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)