-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
The Notification collection would have a TTL index so notifications would only be stored for 7 days after they are created.
Notification documents would be created for all notifications EXCEPT chat related notifications.
The notifications I can currently think of are:
- Upvoted post or comment
- Someone followed / requested to follow you
- Someone commented on a post of yours
A notification document could have one of these two:
- profilePublicId - For notifications to do with someone following or requesting to follow you (allows the frontend to navigate to that user's profile)
- postId & postFormat - For notifications related to comments, comment upvotes, and post upvotes
Schemas to be created:
- Notification
Notification Schema Fields:
userId - ObjectId
profilePublicId - String
postId - ObjectId
postFormat - String
dateCreated - Date
text - String
New APIs to be created:
- GET temp/notifications
- POST temp/deletenotification (takes notificationId in body)
- POST temp/clearnotifications
APIs to be modified:
- temp/deleteimage
- temp/deletepoll
- temp/deletethread
- temp/deleteaccount
- temp/toggleFollowOfAUser
- temp/deletecomment
- temp/voteoncomment
- temp/voteonpost
- temp/removevoteoncomment
- temp/removevoteonpost
- temp/blockaccount
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request