Xinhao Chen
0e16f4b825
Codex/fix flaky anti hotlink test ( #550 )
...
* test: remove network dependency from anti-hotlink test
* test: add optional external anti-hotlink integration test
---------
Co-authored-by: cxh <cxh@example.com >
2026-03-09 14:05:11 +08:00
zy
90a6b5cccd
test: 添加防盗链图片下载测试 ( #417 )
...
验证 PR #412 的修改,使用真实 URL 测试 User-Agent 和 Referer 是否有效。
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com >
2026-02-14 01:05:50 +08:00
coldmountain
52d0205aff
fix: 添加请求头解决图片下载 403 错误 ( #412 )
...
- 添加 User-Agent 请求头,模拟浏览器请求
- 添加 Referer 请求头,使用图片 URL 的域名
- 改进错误信息,包含 URL 和状态码便于排查问题
Co-authored-by: user <user@example.com >
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-02-14 00:53:07 +08:00
zy
a790a97c93
fix: 修复标题长度计算不准确的问题 ( #410 )
...
使用基于 UTF-16 编码的加权算法替换 go-runewidth,与小红书实际计算规则一致:
非ASCII字符算2字节,ASCII字符算1字节,向上取整除以2。
Closes #401
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-10 23:04:12 +08:00
flippancy
2f8aa1d7ee
修复不同类型图片提交的情况下排序的问题 ( #294 )
...
* 修复不同类型图片提交的情况下排序的问题
* fix:去掉索引,按顺序检查图片下载然后加入新的数组
2025-11-16 23:57:47 +08:00
zy
58faab15c4
mcp: add image url support ( #1 )
...
* refactor: remove redundant validation in service and clean up code
- Remove validatePublishRequest function as gin binding already handles validation
- Remove unused errors import
- Simplify PublishContent method by relying on gin's built-in validation
- Add comprehensive image processing support with URL download capability
* 添加 MCP 说明文档,完善教程
2025-08-10 15:44:15 +08:00