Ignore:
Timestamp:
08/24/26 20:57:09 (13 days ago)
Author:
kikisrbinoska <srbinoskakristina07@…>
Branches:
main
Parents:
a6e33d1
Message:

Added corrected entitef from the ER diagram and changes for the logic to be coresponding to the ddl

Location:
chapterx-frontend/src/components/story
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • chapterx-frontend/src/components/story/CommentSection.tsx

    ra6e33d1 re882b92  
    8080      if (currentUser.user_id !== authorUserId) {
    8181        await addNotification({
    82           recipientUserId: authorUserId,
    83           type: 'comment',
     82          userId: authorUserId,
     83          contentType: 'comment',
    8484          content: `${currentUser.username} commented: "${text.trim().slice(0, 60)}${text.length > 60 ? '...' : ''}"`,
     85          storyId,
    8586          link: `/story/${storyId}`,
    8687        })
  • chapterx-frontend/src/components/story/LikeButton.tsx

    ra6e33d1 re882b92  
    5959        if (currentUser.user_id !== authorUserId) {
    6060          await addNotification({
    61             recipientUserId: authorUserId,
    62             type: 'like',
     61            userId: authorUserId,
     62            contentType: 'like',
    6363            content: `${currentUser.username} liked your story.`,
     64            storyId,
    6465            link: `/story/${storyId}`,
    6566          })
Note: See TracChangeset for help on using the changeset viewer.