Text Post

When creating a text post, call the following method:

Refer to Post target type for a more detailed explanation of the targetType parameter.

Create a text post with mention

You can mention users in a post. The sample code below shows how to create a text post with mention.

Highlighting Mentions

There is no restrictions over how you'll handle the highlighting the mentions in your UI. At Amity, we pass this metadata property inside PostRepository.createPost and PostRepository.updatePost along with other parameters to conveniently highlight across the platforms.

Last updated