Repository navigation
Description
Found while drafting the Play content-rating questionnaire, which asks directly whether users interact and share content.
Scaffald carries user-generated content and user-to-user communication, and has no way for a user to report content, report a person, or block anyone. Both stores require all three.
What the app has
| Surface | User-generated? | User-to-user? |
|---|---|---|
Inquiry comment threads (InquiryCommentThread.tsx, InquiryViewCandidate/Organization) |
yes | yes — employer ↔ candidate |
Community posts (features/communities) |
yes | yes — visible to other users |
| Worker profiles — headline, work history, photos | yes | yes — visible to employers |
| Job posts | yes | yes — visible to workers |
What it does not have
$ grep -rlinE '\breport(User|Post|Content|Abuse)\b|\bflag(User|Post|Content)\b|\bblockUser\b' packages/scf-core apps/scaffald
(no matches)
No report affordance, no block affordance, nothing in the SDK either. The only report in the codebase is compliance.ts's EEO report, which is unrelated.
There is one real moderation control: community posts go through pre-publication review (PostComposer.tsx auto-submits for moderation on create). That covers one surface, before publication, and does nothing for the inquiry threads where two strangers actually talk to each other.
Why this blocks launch on both stores
Google Play — User Generated Content policy. Apps hosting UGC must provide an in-app system for reporting objectionable content and users, and the ability to block a user. This is checked at review, and the content-rating questionnaire makes you declare "Users Interact" — which is what invites the check.
Apple — Guideline 1.2, Safety / User Generated Content. Requires: a method for filtering objectionable material, a mechanism to report offensive content with timely responses, the ability to block abusive users, and published contact information. All four.
Apple matters right now, not eventually: 1.17.0 / 11700 is already on TestFlight. External TestFlight distribution goes through review against the same guideline.
What is needed, roughly
- Report content — on a community post and on an individual inquiry message
- Report / block a user — from a profile and from a thread; blocking must actually stop delivery both ways
- Somewhere for reports to land, with a stated response commitment — the existing community moderation queue is the obvious home
- Published contact —
[email protected]already exists and is in the listing copy, so this one is done
Acceptance
- A user can report a community post
- A user can report a message in an inquiry thread
- A user can block another user, and blocking stops messages in both directions
- Reports reach a queue somebody actually reads
-
play-store-assets/metadata/content-rating.md"Users Interact: Yes" is answerable without a caveat
Not to do
Do not answer "Users Interact: No" on the rating questionnaire to avoid the requirement. The app plainly does let users interact; a false declaration is an enforcement matter rather than a rejected form.
Activity
feat(play): content rating, testing tracks, and a submit path that is…
feat(moderation): report and block resource (#20)
feat(moderation): report content, report people, block people (#703)
docs(play): #690 is resolved, so the rating answer is clean
docs(play): #690 is resolved, so the rating answer is clean (#705)
thinkclay commentedon Sep 2, 2026
Done in #703, with the SDK in Scaffald/sdk#20.
All four acceptance items
core.content_reports, indexed for triage by status and datePlus unblocking from Settings, because a block only support can undo is a one-way door.
The half that mattered
A block that is only recorded is worse than none — the user believes they are unreachable and they are not. Enforcement is symmetric and sits on the read paths (inquiry thread, community feed).
That symmetry is why it needs a
SECURITY DEFINERfunction: RLS deliberately lets a user see only rows where they are the blocker, so a client cannot enumerate who blocked them. Right for privacy, useless for filtering a feed.20/20 in
scripts/audit/test-moderation.mjsagainst the local stack. The community feed filters in the query rather than after it — filtering post-hoc would silently shorten pages and break the cursor.Two things worth recording
Three schema assumptions were wrong, and were checked rather than trusted —
inquiry_commentsusessender_id,jobsusescreated_by_user_id, and there is no sharedgetServiceClientto import. Wrong here is silent: the report still files, just with nobody attached to it.Mounting the sheet permanently-hidden broke two existing tests — every message row instantiated two mutations and needed a QueryClient just to draw a flag icon. It now mounts only while open. Fixing the design fixed the tests; I did not edit them.
Left for later, deliberately
The blocked list shows a short id, not a name. The API returns ids on purpose — seeing someone you blocked should not require loading their profile — so joining the profile in is a follow-up rather than an oversight.
Moderators triage
core.content_reportsdirectly for now. The existing communityflaggedstatus and review queue are the natural home for a proper surface.content-rating.mdno longer carries its caveat (#705): "Users Interact: Yes" is answerable cleanly now.thinkclay commentedon Sep 10, 2026
Correction to my close-out comment, found while triaging for store readiness.
I ticked "report a message in an inquiry thread". The code is there and correct, but the screen it lives on cannot load:
core.inquiriesdoes not exist — #476, still open and still real. So that particular affordance is true in principle and unreachable in practice until #476 lands.The rest of #690 is genuinely reachable and unaffected: reporting a community post, reporting a person, blocking, symmetric enforcement, and the Settings surface all work against live tables and were verified end to end.
Not reopening — the moderation work is done and correct, and the blocker is a different missing table in a different feature. But #476 now carries a store-readiness consequence it did not obviously have before: a reviewer clicking into an inquiry gets a 500, and the UGC affordance the stores require is unreachable on that surface. Noting it on #476 as well.