Skip to content

Conversation

@MahmoudEissaM
Copy link
Collaborator

No description provided.

MahmoudEissaM and others added 30 commits May 2, 2025 15:53
…like notification types:

Follows
Likes
Comments
Retweets
Shares
Mentions (in tweets and comments)

We've improved the WebSocket consumer to:
Send unread notification count on connect
Support marking all notifications as read
Update unread count after each action
Provide better real-time updates
- Changed sender from 'tweets.Like' to 'tweets.Likes' to match the actual model
- Updated comment signal to use 'Tweet' instead of the removed 'Comment' model
- Improved comment notification logic to check for parent and avoid self-notifications
- Notifications.jsx: auto-mark as read, instant redirect to post, persistent read state
- notificationEvents.js: improved WebSocket handling with message queue
- Navigations.jsx: live notification counter update
- socketio.py: enhanced backend handling for real-time events
…d to use backend state for follow-back button
…PostsView to prevent AttributeError and 500 error on /api/tweets/random/
Merge branch 'dev' of https://github.com/jbeil99/x-clone into dev
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.

5 participants