Changeset e882b92 for chapterx-frontend/src/components/story
- Timestamp:
- 08/24/26 20:57:09 (13 days ago)
- Branches:
- main
- Parents:
- a6e33d1
- Location:
- chapterx-frontend/src/components/story
- Files:
-
- 2 edited
-
CommentSection.tsx (modified) (1 diff)
-
LikeButton.tsx (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
chapterx-frontend/src/components/story/CommentSection.tsx
ra6e33d1 re882b92 80 80 if (currentUser.user_id !== authorUserId) { 81 81 await addNotification({ 82 recipientUserId: authorUserId,83 type: 'comment',82 userId: authorUserId, 83 contentType: 'comment', 84 84 content: `${currentUser.username} commented: "${text.trim().slice(0, 60)}${text.length > 60 ? '...' : ''}"`, 85 storyId, 85 86 link: `/story/${storyId}`, 86 87 }) -
chapterx-frontend/src/components/story/LikeButton.tsx
ra6e33d1 re882b92 59 59 if (currentUser.user_id !== authorUserId) { 60 60 await addNotification({ 61 recipientUserId: authorUserId,62 type: 'like',61 userId: authorUserId, 62 contentType: 'like', 63 63 content: `${currentUser.username} liked your story.`, 64 storyId, 64 65 link: `/story/${storyId}`, 65 66 })
Note:
See TracChangeset
for help on using the changeset viewer.
