Skip to content

fix: resolve add friend feature in community section#84

Open
vasheekhan wants to merge 1 commit into
AnirbansarkarS:mainfrom
vasheekhan:fix/add-friend-feature
Open

fix: resolve add friend feature in community section#84
vasheekhan wants to merge 1 commit into
AnirbansarkarS:mainfrom
vasheekhan:fix/add-friend-feature

Conversation

@vasheekhan

Copy link
Copy Markdown
Contributor

🐛 Problem

The "Add Friend" feature in the Community section was not working correctly due to improper friendship existence handling using .single().

✅ Fix Implemented

  • Replaced .single() query with proper array handling
  • Fixed friend request workflow
  • Prevented duplicate friend requests
  • Added self-friend prevention validation
  • Improved friendship error handling

🧪 Tested

  • Send friend request
  • Prevent duplicate requests
  • Prevent self add
  • Accept friend request flow

✨ Improvements

  • More reliable friend request system
  • Better validation handling
  • Improved user experience in Community section

Closes #60

@vasheekhan

@vercel

vercel Bot commented May 21, 2026

Copy link
Copy Markdown

@vasheekhan is attempting to deploy a commit to the anirbansarkars' projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ADD friends

1 participant