This commit is contained in:
浪子
2026-05-15 22:40:43 +08:00
parent e2fcf08e2f
commit cba4901058
7 changed files with 205 additions and 9 deletions
+4 -3
View File
@@ -112,8 +112,8 @@ npm run deploy
- `GET / POST /api/v1/lists``GET / PUT / DELETE /api/v1/lists/:id``GET / POST / DELETE /api/v1/lists/:id/accounts`
- `GET /api/v1/notifications``POST /api/v1/notifications/clear``POST /api/v1/notifications/:id/dismiss`
- `POST /api/v1/media``POST /api/v2/media``PUT /api/v1/media/:id`
- `GET /api/v2/search``GET /api/v1/search`(本地账号 / 嘟文 / 话题标签 + 跨站 WebFinger 解析 `acct:` 查询)
- `GET /api/v1/custom_emojis``GET /api/v1/filters``GET /api/v1/trends/tags``GET /api/v1/markers`(stub)
- `GET /api/v2/search``GET /api/v1/search`(本地账号 / 嘟文 / 话题标签 + 跨站 WebFinger 解析 `acct:` 查询 + 粘贴远端嘟文 URL 按需抓取缓存)
- `GET /api/v1/custom_emojis``GET /api/v1/filters``GET /api/v1/trends/tags``GET /api/v1/markers``POST /api/v1/markers`
- `GET / POST / PUT / DELETE /api/v1/push/subscription`(存储 Web Push 订阅参数;实际推送投递仍需 VAPID/加密发送实现)
### ActivityPub / 发现
@@ -153,6 +153,7 @@ npm run deploy
- `migrations/0006_cached_status_metadata.sql` — 远端缓存嘟文的可见性 / mentions / tags / 本地收件人元数据
- `migrations/0007_polls_lists_push_scheduled.sql` — poll / list / push subscription / scheduled statuses
- `migrations/0008_outgoing_deliveries.sql` — 出站 ActivityPub 投递队列 / 重试状态
- `migrations/0009_markers.sql` — Mastodon 读位 markers(home / notifications)
## 重要限制
@@ -163,7 +164,7 @@ npm run deploy
- `public` / `unlisted` 可公开读取; ActivityPub outbox 只暴露这两类状态
- `private` 会按 followers-only 投递,本地读取限作者和本地关注者
- `direct` 仍没有完整受众表,本地读取保守限制为作者可见,不应当作为完整私信系统使用
- 远端嘟文缓存从入站 `Create(Note)`已缓存嘟文的 `Update(Note)` 写入,不抓取历史 outbox
- 远端嘟文缓存从入站 `Create(Note)`已缓存嘟文的 `Update(Note)` 和搜索远端嘟文 URL 时按需写入,不抓取历史 outbox
- 远端缓存嘟文会保留正文、CW、语言、可见性、mentions、tags、本地收件人和附件; 互动计数、poll、card 等扩展信息不会完整恢复
- Web Push 目前实现订阅存储和 API 兼容,尚未实现 VAPID 加密投递通知
- Poll 当前只在本地 Mastodon API 中序列化和投票,不会联邦成 ActivityPub Question