fix(route/zhihu): use /members/ API for org posts instead of deprecated /org/#22425
Closed
SWZ128 wants to merge 1 commit into
Closed
fix(route/zhihu): use /members/ API for org posts instead of deprecated /org/#22425SWZ128 wants to merge 1 commit into
SWZ128 wants to merge 1 commit into
Conversation
…ed /org/ Zhihu now serves organization articles through `/api/v4/members/` API instead of the deprecated `/api/v4/org/`. This caused all `/zhihu/posts/org/:id` routes to return 503 NotFoundError.
Contributor
Contributor
Collaborator
|
Already covered by #22319 |
9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Involved Issue / 该 PR 相关 Issue
Close #
Example for the Proposed Route(s) / 路由地址示例
New RSS Route Checklist / 新 RSS 路由检查表
Note / 说明
Problem / 问题
/zhihu/posts/org/:idreturns 503. Root cause: zhihu's/api/v4/org/:id/articlesendpoint is deprecated, org articles now all use/api/v4/members/:id/articles./zhihu/posts/org/:id返回 503。根因:zhihu 的/api/v4/org/:id/articles端点已废弃,现在 org 类型文章统一走/api/v4/members/:id/articles。posts.tsL62 previously branched by usertype:posts.tsL62 原来按 usertype 分叉:people→/api/v4/members/...✓org→/api/v4/org/...✗ (returns 404 / 返回 404)Fix / 修复
Changed to always use
/api/v4/members/....改为统一
/api/v4/members/...。Verification / 验证
Requires logged-in zhihu cookies (
z_c0,d_c0,__zse_ck):需要知乎登录后的 cookies(
z_c0、d_c0、__zse_ck):people unaffected, org restored.
people 不受影响,org 恢复。