Links

Community Post Settings

Introducing CommunityPostSettings with enhanced options to create post.
There are 3 possible options for CommunityPostSettings.
iOS
Android
JavaScript
TypeScript
Flutter
  • CommunityPostSettings.anyoneCanPost : Anyone can create the post and add to the community feed immediately.
  • CommunityPostSettings.adminReviewPostRequired : Allow users to create posts in a community. Then, create another layer of moderation to allow community moderators to decide whether the post should reflect on the community feed.
  • CommunityPostSettings.onlyAdminCanPost : Allow only community moderators to create a post in the community.
You can check community post settings by calling property postSettings . This property returns CommunityPostSettings.
  • AmityCommunityPostSettings.ANYONE_CAN_POST : Anyone can create the post and added to the community feed immediately.
  • AmityCommunityPostSettings.ADMIN_REVIEW_POST_REQUIRED : Allow users to create posts in a community. Then, create another layer of moderation to allow community moderators to decide whether the post should reflect on the community feed.
  • AmityCommunityPostSettings.ADMIN_CAN_POST_ONLY : Allow only community moderators create a post in the community.
In Android SDK, You can check community post settings by method getPostSettings() .
val community: AmityCommunity
val postSettings: AmityCommunityPostSettings = community.getPostSettings()
  • CommunityPostSettings.ANYONE_CAN_POST : Anyone can create the post and add to the community feed immediately.
  • CommunityPostSettings.ADMIN_REVIEW_POST_REQUIRED : Allow users to create posts in a community. Then, create another layer of moderation to allow community moderators to decide whether the post should reflect on the community feed.
  • CommunityPostSettings.ONLY_ADMIN_CAN_POST : Allow only community moderators to create a post in the community.
  • CommunityPostSettings.ANYONE_CAN_POST : Anyone can create the post and add to the community feed immediately.
  • CommunityPostSettings.ADMIN_REVIEW_POST_REQUIRED : Allow users to create posts in a community. Then, create another layer of moderation to allow community moderators to decide whether the post should reflect on the community feed.
  • CommunityPostSettings.ONLY_ADMIN_CAN_POST : Allow only community moderators to create a post in the community.
The functionality isn't currently supported by this SDK.

Create Community

If you want to create a community and need to review post before they're added to your community feed, you can call the following:
iOS
Android
JavaScript
TypeScript
Flutter
The functionality isn't currently supported by this SDK.
  • TheisPostReviewEnabled value is published by default. if you do not call this function, a post of member will be shown on community feed immediately without reviewing.
  • By default, the postSettings value is set to ANYONE_CAN_POST. In this case, member's posts will be displayed in the community feed without any review from admin.

Update Community

If you want to update a community and change the status of isPostReviewEnable, you can call the following:
iOS
Android
JavaScript
TypeScript
Flutter
The functionality isn't currently supported by this SDK.

Post Count with FeedType

Community model allows user to get post count by feed type.
iOS
Android
JavaScript
TypeScript
Flutter
Supported ✅ (Please wait while we prepare a real example!)
Supported ✅ (Please wait while we prepare a real example!)
The functionality isn't currently supported by this SDK.
AmityCommunity model allows user to get status of isPostReviewEnabled

Permission

If you want to check the permissions of a post in review for a community, you can use this enum.
iOS
Android
JavaScript
TypeScript
Flutter
AmityPermission.reviewCommunityPost by following the below code.
Also, you can use AmityPermission.REVIEW_COMMUNITY_POST enum to check permission review post on community in the same method.
AmityPermission.CREATE_PRIVILEGED_POST by following this:​Write a caption​Also, you can use AmityPermission.REVIEW_COMMUNITY_POST enum to check permission review post on community in the same method.
Supported ✅ (Please wait while we prepare a real example!)
Supported ✅ (Please wait while we prepare a real example!)
The functionality isn't currently supported by this SDK.

Post Approval

Create Community

If you want to create a community and need to review post before they're added to your community feed, you can call the following:
iOS
Android
JavaScript
TypeScript
Flutter
Supported ✅ (Please wait while we prepare a real example!)
Supported ✅ (Please wait while we prepare a real example!)
The functionality isn't currently supported by this SDK.
Note: The isPostReviewEnabled value is published by default. If you do not call this function, a post of member will be shown on community feed immediately without reviewing.