修复文本收藏/聊天记录检索不识别已撤回状态、P2P来源收藏名称解析404

问题13(收藏availability恒为available)后端修复后暴露的真实缺口:
text类型收藏和History的history-search结果都只判断item.type,从不看
availability,撤回的文本消息会原样一直显示旧内容(History里甚至会
显示后端messageText()对nil content兜底出的字面量"null")。

另外,P2P来源的收藏来源名称解析函数把复合p2p话题id当用户uid传给
/users/{id}/profile,必现404,永远显示原始话题字符串而非好友昵称;
改用已有的getConversationContext接口正确解析。

第十一轮最小粒度测试 Ch7 发现。

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Your Name
2026-09-06 02:13:49 +08:00
co-authored by Claude Sonnet 5
parent 117bf43c25
commit b5531b0b7f
2 changed files with 49 additions and 17 deletions
+11 -5
View File
@@ -11064,13 +11064,18 @@ div.toast.show {
white-space: nowrap;
}
/* Shared by VoiceCard/LinkText/MediaThumb's "removed" state (content-library-view.jsx) -- same
opacity + red label language as .library-file-card.removed/em above, but these three don't share
/* Shared by VoiceCard/LinkText/MediaThumb/text-favorite's "removed" state (content-library-view.jsx)
-- same opacity + red label language as .library-file-card.removed/em above, but these don't share
its grid layout (voice/media assume an icon+waveform or an image backdrop that isn't there once
the source message is gone), so the removed state uses a simple centered flex row instead. */
the source message is gone), so the removed state uses a simple centered flex row instead.
.library-text-content.removed covers a recalled/deleted *text* favorite or history-search hit --
plain text has no dedicated wrapper component of its own (FavoriteItem/History render it inline),
so the same modifier class is applied straight to the existing <p className="library-text-content">
rather than introducing a whole new component just for this one state. */
.library-voice-card.removed,
.library-link-text.removed,
.library-media-thumb.removed {
.library-media-thumb.removed,
.library-text-content.removed {
display: flex;
align-items: center;
justify-content: center;
@@ -11080,7 +11085,8 @@ div.toast.show {
.library-voice-card.removed em,
.library-link-text.removed em,
.library-media-thumb.removed em {
.library-media-thumb.removed em,
.library-text-content.removed em {
color: #d74a53;
font-size: 0.74rem;
font-style: normal;