We are building Feed Groups similar to Facebook Groups and we want admin and moderator functionalities to be implemented. How can we implement such functionality?
Presently, we thought of two ways,
1) Have a separate feed group UnApprovedFeed
for unapproved posts and once the feed from UnApprovedFeed
gets approved, it gets deleted from UnApprovedFeed
and gets published to Normal FeedGroup
,
2) Have an extra boolean object Approved
to the activity, and filter based upon it, If approved the boolean is true
else false
.
Or is there any available abstraction for moderators already in Stream?
both of your ideas will work, but the second option is what we've seen most frequently (and what we've done ourselves in a few projects our services team have done for customers). You can have your front end query that field and just not display.