Skip to content

fix: 增强内容渲染和 AI 摘要的稳定性#526

Merged
OXeu merged 2 commits into
openRin:mainfrom
leeon666:upstream/stability-content-fixes
Jun 23, 2026
Merged

fix: 增强内容渲染和 AI 摘要的稳定性#526
OXeu merged 2 commits into
openRin:mainfrom
leeon666:upstream/stability-content-fixes

Conversation

@leeon666

@leeon666 leeon666 commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

概述

这个 PR 合并了一组通用的稳定性修复:

  • 对文章页、列表页、搜索页、标签页等位置的接口数组字段增加兜底,避免后端返回缺失字段时触发运行时 .map 崩溃。
  • 当 feed card 封面图缺少宽高元数据时,提供默认比例,避免图片布局异常。
  • 封面图提取同时支持 Markdown 图片和 HTML <img> 标签,并跳过内嵌的 data: URI。
  • Mermaid remark 插件在遍历 AST 子节点时增加防御式判断。
  • 在保存 AI 摘要前过滤常见 reasoning 标签(<think><thinking><reasoning>),避免模型推理内容泄漏到摘要中。

范围说明

这个 PR 有意排除了所有个人站点相关改动,包括:部署配置、音乐集成、存储后端、域名、凭据、实例定制逻辑等。这里只保留适合上游合并的通用修复。

测试

  • bun run check

说明:本地 Turbo 会输出一个既有的 workspace 解析警告,但 TypeScript 检查任务已完成。

@leeon666 leeon666 changed the title fix: harden content rendering and AI summaries fix: 增强内容渲染和 AI 摘要的稳定性 Jun 21, 2026
@github-actions

Copy link
Copy Markdown

🚀 Preview deployed!

🔗 https://rin-server-pr-526.xeu.workers.dev

@OXeu OXeu merged commit 6abad19 into openRin:main Jun 23, 2026
7 checks passed
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