Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Put the full text in the content field. #242

Merged
merged 1 commit into from
Sep 11, 2024
Merged

Conversation

weijarz
Copy link
Contributor

@weijarz weijarz commented Sep 8, 2024

JSON Feed (https://www.jsonfeed.org/version/1/)
和 Atom (https://www.ietf.org/rfc/rfc4287.txt)
都把全文放在 content 字段,而不是 summary字段。
如果在调用 feed 库的时候,把内容放在 description,那输出的时候全文内容会出现在 summary 字段中。而summary字段原本放的应该只是摘要,所以导致有些 feed 分析库出现了问题。

这段代码是我看了下 feed 库的 api 有这个 content 字段改的,还实际测试过。自己部署了下不知道为什么报没有读书帐号错误。

@cooderl
Copy link
Owner

cooderl commented Sep 11, 2024

好兄弟,你说的对!

@cooderl cooderl merged commit f7f4f85 into cooderl:main Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants