Organizations can now receive notifications!
If you are a member of an organization, you will be notified of any new comments or reactions to your organization's posts, as well as any new followers to your organization. You can find them in your notifications page.
Nitty gritty details and the technical implementation can be found in the pull request:
What type of PR is this? (check all applicable)
- [x] Feature
This adds notifications for organizations!
- Anyone who is a
memberof the organization can view the org's notifications.
- Any org member who views the org notifications will mark them as
- The routes are:
/notifications/comments/:org_id. This keeps it flexible for people who belong to multiple orgs.
- There is no filter for
postsbecause orgs can't follow people (and therefore cannot receive notifications for new posts).
- Orgs can receive new comment and reaction notifications on their org posts, as well as notifications for new followers.
- Org notifications are not counted in the bell icon.
- Notifications can belong to either a user or an organization. One or the other, not both. I could add a database constraint but that would require some custom SQL. Not sure if it's completely necessary.
One feature I forgot -- I remembered just now while writing is -- is the ability for orgs to send a new post notification to their followers. I can add this in if we want. Don't think it would take too much time. Just added this
Related Tickets & Documents
Mobile & Desktop Screenshots/Recordings (if there are UI changes)
[optional] What gif best describes this PR or how it makes you feel?