Serve "news" to users
Hey all,
So we have a feature where our team can write news to be displayed in the user dashboard. The news are usually information about new exciting features, updates that affect the platform (see Covid stuff) etc.
We have a NewsItem model that simply has a title and content fields. Because some news are targeted to specific type of users we added a field user_type.
We then filter the news based on the current authenticated user role and display them in their dashboard.
Now we introduced more user roles and some of the news needs to be served for multiple user types.
Furthermore we would like to give the ability to the users to clear their news feed.
I was thinking that maybe we can simply switch to database notifications for this one. Our team can then simply select the users that they want to see this notification and dispatch it. User's can then view, mark as read etc like they do for all the other database notifications.
Any advice here? Did anyone worked on something similar? Thanks a lot
Please or to participate in this conversation.