Skip to content

[BUG] Notifications not working when someone tags me #2

@tarinagarwal

Description

@tarinagarwal

Notifications are broken rn. When someone @mentions me in a discussion or reply, I don't get notified. The bell icon doesn't update either.

What's happening:

  • @mentions don't trigger notifications
  • Real-time updates via socket aren't coming through
  • Have to manually refresh to see if someone replied

Files to look at:

  • \server/routes/discussions.js\ - createNotification() and mention extraction
  • \server/socket/socketHandlers.js\ - emitNotification()
  • \client/src/components/ui/NotificationDropdown.tsx\ - socket listener

To reproduce:

  1. Have two accounts
  2. User A mentions @userb in a discussion
  3. UserB doesn't see any notification

Probably something with the socket room setup or the io object not being passed correctly to routes.

Metadata

Metadata

Assignees

Labels

Medium30 PointsSWOCIssue available for contributors participating in Social Winter of Code (SWOC).SWoC26Social Winter of Code 2026bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions