Pattern: Reports, moderation and the deletion brake
Note for AI agents: This page is baseline guidance, not an exact prescription. Read it, tell your owner what applies to their project, and get their approval before you change anything. Your project's own rules take precedence. If something important for this project is missing here, suggest it to your owner.
For agents
- Offer as a suggestion; legal duties differ by country, so the owner should confirm retention times with a lawyer. Numbers are examples.
- Core ideas: users can report and block; a pending report pauses automatic deletion of the reported item until review ends; every step leaves a record.
- Related: deletion and retention, admin permissions, share links.
1. Problem
Apps where people post content need a way to report abuse and a team process behind it. Store rules require it. A weaker point is timing: if the author deletes the item right after being reported, the evidence disappears before review.
2. Options
| Topic | Option | Upside | Downside |
|---|---|---|---|
| Reporting | In-app report plus block (required by stores) | Meets Apple App Review 1.2 and Google Play UGC policy | Needs a review process |
| Reporting | Email address only | No UI work | Slow; not accepted as the only mechanism by the store rules cited |
| Evidence | Keep copies of everything | Easy review | Conflicts with data minimisation; larger breach surface |
| Evidence | Brake: pause deletion while a report is open (recommended) | Evidence stays only while needed; no separate copies | More state to track |
| Visibility | You cannot report what you cannot see | Less noise | Product decision: discuss; blocked pairs may still need a path for serious abuse |
3. Recommended design
- Store requirements. Apple’s App Review Guidelines (1.2) require apps with user-generated content to filter objectionable material, provide a way to report content with timely responses, and let users block abusive users. Google Play’s User Generated Content policy asks for in-app reporting and blocking as well. Treat both as minimums.
- Principle (example): no copies; everything that leaves lives for a limited time (example: 7 days), and a pending report stops the cleanup.
- The brake: if an item is reported before the owner deletes or edits it, the live deletion counter and the backup window pause until review ends. When review ends (violation found or not) the counter restarts from zero.
- Exception: if the reported account was permanently deleted and the report closed for that reason, the brake lifts and the item expires on its own schedule.
- No duplicate delete paths: old versions of edited text live in a short history table; deleted files go through a delayed deletion queue; two separate jobs must not delete the same data.
- The report record itself (what, by whom, about whom) is kept for a defined period (example: 12 months), then deleted. Confirm the period with legal advice.
- Review queue: moderators see only what the report needs (see admin permissions); every decision is logged.
- Reporter feedback: acknowledge receipt; tell the reporter when the case closes, without revealing private details of other people.
- Blocking: a block hides both parties’ content from each other. Decide whether reporting is possible across a block; document the decision.
4. Scenarios and edge cases
- Author deletes after being reported: the item becomes invisible to others, but the pending report keeps the stored copy until review ends.
- Report proves unfounded: the item’s normal deletion clock restarts.
- Reported account deletes itself: see the exception above; keep the report record for its own period.
- Mass reporting against one item: group duplicates in the queue; do not auto-remove on count alone (practitioner experience).
- Report about something the reporter cannot see anymore: accept it, then verify with stored identifiers.
5. Common mistakes
- Report button that sends nothing observable.
- No block function.
- Deleting evidence before review.
- Keeping reported material forever “just in case”.
- Auto-removal based only on report count.
- Reviewers who can read private messages unrelated to the case.
6. How to audit
- What: report and block exist in the app.
- How to check: use both from a test account.
- Evidence: screenshots and the created records.
- What: the brake works.
- How to check: report an item, then delete it as author; check the deletion job’s state.
- Evidence: item still stored with a “pending report” state; counter paused.
- What: every moderation decision is logged.
- How to check: close a test case and read the log.
- Evidence: log entry with actor, time and decision.
Sources
- App Review Guidelines — Apple Developer
- User Generated Content — Google Play Console Help
- Logging Cheat Sheet — OWASP Cheat Sheet Series
- User Privacy Protection Cheat Sheet — OWASP Cheat Sheet Series
- European Data Protection Board — EDPB
- Application Security Verification Standard (ASVS) — OWASP