Skip to content

修复微博超话 sinaweibo:// 超链接转换、冲突对比超链接展示与旧缓存误报 #102

Done

Description

@chialecode

Agent:按仓库所有者 2026-11-26 实机截图反馈,修复微博超话超链接与内容冲突对比三处问题:

  1. internal/site/weibo/links.go:NormalizeWeiboJumpURL 将安全的 sinaweibo://pageinfo?containerid=<id>...(如超话 100808...、主页 100505.../100606...)规范转换为桌面网页链接 https://weibo.com/p/<containerid>(兼容 sinaweibo://userinfo?uid=<digits> → https://weibo.com/u/<digits>),其余未知自定义 scheme 与带签名令牌仍严格拦截。
  2. internal/ui/tasks_conflicts_view.go:内容冲突左右并列对比弹窗的「文字差异对比」支持呈现超链接(或可点击链接标签),避免右侧新版本正文因链接抽离到 Links[] 而看起来丢失超链接。
  3. internal/download/conflict_contract.go & internal/service/cache_conflicts.go:NormalizeConflictText 兼容剥离 DEC-073 之前旧缓存正文中的内联 (sinaweibo://...) / (http(s)://...) 尾缀,消除旧缓存误报文字冲突;并在读取/核对冲突列表时自动消解仅由旧格式内联 URL 引起的既有误报,同时无损补写规范 text 与 links(不动媒体文件)。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugin-progress

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions