You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 7, 2026. It is now read-only.
Likes were doing double duty as bookmarks (the profile even labelled the likes
list "收藏"). Split the concepts: ❤️ 点赞 stays an appreciation signal (drives
popular sorting + 获赞 stats), 🔖 收藏 is a private save-for-later marker.
- Schema: Bookmark model mirroring Like (unique [userId, storyId] + indexes);
additive migration 20260622130000.
- bookmark.ts: toggleBookmark + getBookmarkedStories (no notification — private).
- StoryReader: 收藏 button beside 点赞, with initialBookmarked wired through the
story page (parallel like+bookmark lookup).
- Profile: relabel the likes tab 收藏 → 点赞, add a real 收藏 tab backed by
bookmarks (now 4 tabs).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments