Skip to content

No way to report content, report a user, or block anyone — both stores require all three for UGC #690

Closed

Description

@thinkclay

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

  1. Report content — on a community post and on an individual inquiry message
  2. Report / block a user — from a profile and from a thread; blocking must actually stop delivery both ways
  3. Somewhere for reports to land, with a stated response commitment — the existing community moderation queue is the obvious home
  4. 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

  1. added
    agent-ready
    on Sep 1, 2026
  2. added 2 commits that reference this issue on Sep 2, 2026
  3. thinkclay commented on Sep 2, 2026

    @thinkclay
    ContributorAuthor

    Done in #703, with the SDK in Scaffald/sdk#20.

    All four acceptance items

    • Report a community post — in the author row, visible without opening the post
    • Report a message in an inquiry thread — per message
    • Block a person, and blocking stops messages in both directions
    • Reports land in core.content_reports, indexed for triage by status and date

    Plus 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 DEFINER function: 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.

    ✓ blocker gets the blocked user in their filter list
    ✓ BLOCKED user is filtered too — symmetric
    ✓ ...while still unable to see the block row itself
    ✓ unblocking restores delivery both ways
    

    20/20 in scripts/audit/test-moderation.mjs against 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_comments uses sender_id, jobs uses created_by_user_id, and there is no shared getServiceClient to 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_reports directly for now. The existing community flagged status and review queue are the natural home for a proper surface.

    content-rating.md no longer carries its caveat (#705): "Users Interact: Yes" is answerable cleanly now.

  4. thinkclay commented on Sep 10, 2026

    @thinkclay
    ContributorAuthor

    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:

    GET /v1/inquiries
      500  {"error":"Failed to fetch inquiries",
            "message":"Could not find the table 'core.inquiries' in the schema cache"}
    

    core.inquiries does 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-ready

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions