Community posts in my profile screen

can i get my created posts in my profile screen if i put targetType to “community” and targetId to {communityId}? do you have some api to getting all posts that i created post even if it is created for community or not

Hello, this feature is not currently available in our core product, but there are two solutions to achieve this:

  1. You can call this API simultaneously when creating a community post: Post API by specifying the targetType and targetId to direct the post to that user’s feed. Technically, you’re creating posts on both feeds at the same time.

  2. You can utilize our Search Posts API by specifying the postedUserId. This API will return a list of public posts created by that user, which you can then render and display in a separate tab or feed.