Skip to content

feat(weibo): support for-you and following feed types#959

Merged
jackwener merged 2 commits intojackwener:mainfrom
iiilin:feat/weibo-feed-types
Apr 11, 2026
Merged

feat(weibo): support for-you and following feed types#959
jackwener merged 2 commits intojackwener:mainfrom
iiilin:feat/weibo-feed-types

Conversation

@iiilin
Copy link
Copy Markdown
Contributor

@iiilin iiilin commented Apr 11, 2026

Description

现在拉取 opencli weibo feed 是拉的是 unreadfriendstimeline 这个接口,也就是对应全部关注的消息流,这个如果好友消息读完了,拉到的就都是乱七八糟的推荐消息
image

于是我加了一个拉取 friendstimeline 的逻辑,这个是对应的最新微博的接口,这个是严格拉取关注人的微博,且按时间排序,不会拉到未关注人的微博

image

参数命名上参考了 twitter 的命名风格

  • following 对应最新微博的 friendstimeline 的逻辑
  • for-you 对应了全部关注的推荐逻辑

Related issue:

Type of Change

  • 🐛 Bug fix
  • [☑️] ✨ New feature
  • [☑️] 🌐 New site adapter
  • 📝 Documentation
  • ♻️ Refactor
  • 🔧 CI / build / tooling

Checklist

  • I ran the checks relevant to this PR
  • I updated tests or docs if needed
  • [☑️] I included output or screenshots when useful

Documentation (if adding/modifying an adapter)

  • Added doc page under docs/adapters/ (if new adapter)
  • Updated docs/adapters/index.md table (if new adapter)
  • Updated sidebar in docs/.vitepress/config.mts (if new adapter)
  • Updated README.md / README.zh-CN.md when command discoverability changed
  • Used positional args for the command's primary subject unless a named flag is clearly better
  • Normalized expected adapter failures to CliError subclasses instead of raw Error

Screenshots / Output

opencli weibo feed help
image

opencli weibo feed 和原有逻辑一致
image

opencli weibo feed --type following 拉取关注人的最新微博
image

@Astro-Han
Copy link
Copy Markdown
Contributor

This also looks reasonable to me. The new feed --type behavior matches the problem described in the PR, and I did not find a clear blocking issue in the change itself.

@jackwener jackwener merged commit b0a0191 into jackwener:main Apr 11, 2026
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.

3 participants