Hide Post
The Hide Post
feature allows users to hide specific posts from their view within the application. This can be useful for managing the content they interact with.
Steps to Hide a Post
- Use the
hidePost()
function provided by thelmFeedClient
object created earlier. - Create an instance of
HidePostRequest
, as shown in the snippet and pass it to the above method. - Use the response as per your requirement
try {
const hidePostRequest = HidePostRequest.builder()
.setPostId("POST_ID") // Replace with the ID of the post to be hidden
.build();
const response = await lmFeedClient.hidePost(hidePostRequest);
// The response will be an empty object
} catch (error) {
// Handle the error as necessary
}
Models
HidePostRequest
Variable | Type | Description | Optional |
---|---|---|---|
postId | string | Id of post. | ✔️ |