feat: add report categorization fields to flag user endpoint - #485
Merged
Conversation
Add optional reportType, reason, and comment body fields to
POST /api/v4/me/flags/{userId}, with validation and 403/422
error responses. Document per-(reporter, reportType) dedup
semantics and clarify the DELETE endpoint withdraws all reports.
Remove the dead, unreferenced v4/user/api.yaml.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
RiwEZ
force-pushed
the
feat-report-user-fields
branch
from
July 22, 2026 03:50
251df3f to
c8122db
Compare
Add UserWithModerationV3 schema (flags[].reportType/reason/comment plus aiModerations, manualReview, lastFlaggedAt, lastReviewedAt) and point the didFlag/didUnflag webhook responses at it. UserV3 left untouched so the ~120 non-webhook references stay accurate. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
RiwEZ
force-pushed
the
feat-report-user-fields
branch
from
July 23, 2026 08:07
b3d6e35 to
7ccb41e
Compare
xypherbo
approved these changes
Jul 31, 2026
artpasut
approved these changes
Jul 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add optional reportType, reason, and comment body fields to POST /api/v4/me/flags/{userId}, with validation and 403/422 error responses. Document per-(reporter, reportType) dedup semantics and clarify the DELETE endpoint withdraws all reports. Remove the dead, unreferenced v4/user/api.yaml.