Provide Feedback
This guide will show you tools for users to provide feedback on Lens.
Report a Post
Users can report a Post if they find it inappropriate or offensive. Reporting a Post will help Lens ML algorithms to identify and remove harmful content.
Users can chose between the following reasons:
PostReportReason
enum PostReportReason { ANIMAL_ABUSE HARASSMENT VIOLENCE SELF_HARM DIRECT_THREAT HATE_SPEECH NUDITY OFFENSIVE SCAM UNAUTHORIZED_SALE IMPERSONATION MISLEADING MISUSE_HASHTAGS UNRELATED REPETITIVE FAKE_ENGAGEMENT MANIPULATION_ALGO SOMETHING_ELSE}
You MUST be authenticated as Account Owner or Account Manager to make this request.
- TypeScript
- GraphQL
- React
Use the reportPost action to report a post on Lens.
Block Account
import { postId, PostReportReason } from "@lens-protocol/client";import { reportPost } from "@lens-protocol/client/actions";
const result = await reportPost(sessionClient, { report: PostReportReason.SCAM, post: postId("42"), additionalComment: "This post is a scam!" // optional});
if (result.isErr()) { return console.error(result.error);}
That's it—you've successfully reported a post on Lens!
Mark as Not Interested
Users have the ability to mark a Post as "Not Interested" if they don't want to see similar content in the future. The Lens ML algorithms will use this feedback to improve the user's feed.
You MUST be authenticated as Account Owner or Account Manager to make these requests.
- GraphQL
- TypeScript
- React
Use the mlAddPostNotInterested mutation to mark a post as "Not Interested".
Use the mlUndoPostNotInterested to undo the "Not Interested" action.