CommunityRepository, a class that contains all community-related methods. Then, call
createCommunity()to obtain the LiveObject and observe it in order to obtain the final community model.
fileIdfrom the model you will receive from the live object used to upload file via
FileRepository. To upload files and images, refer to File Handling.
once()will automatically unregister the event listener once the first event is emitted. This is useful if you just need to use the model once but do not need to listen to further events.
closeCommunitymethod. It accepts the community ID as the parameter.
searchparameter let you filter communities based on the community
isJoinedparameter let you filter communities based on the logged-in user membership status
tagsparameters let you filter communities based on the tags set (or not set) in each community
categoriesparameters let you filter communities based on community categories
sortByparameters let you filter communities based on the order that the communities were created or based on alphabetical order
getCommunityMembersmethod. It accepts the following parameters:
communityId- the ID of the community to query
memberships- filter for membership type. The possible values are: (see
'none'- not a member of the community
'member'- member of the community
'banned'- member banned from the community
'muted'- member muted from the community
roles- filter members by specific role
sortBy- sorting method to arrange the returned collection. The possible values are: (see
search- query string
CommunityRepositoryclass provides a way to moderate the community by banning or unbanning users.
unbanUsersmethods accept an array of user ids to ban and unban respectively.
removeRolesfunctions respectively. These functions accept an array of strings as an argument that contains the roles that you want to add or remove from a specific user.
CommunityRepositorywill also be able to manage community categories. When communities are put into categories, you will be able to sort and filter each of the community by categories.
Currently, categories can only be created and updated from the admin panel.
Feed.Reviewing. Once approved, it will be moved to
FeedType.Published. If it is declined, it will be moved to
FeedType.Declined. If the post review is turned off, the new post will be added immediately in
The post review is skipped for posts which are created by community owners or moderators. They will be added in