feat(safety): UGC moderation for App Store Guideline 1.2 compliance - #1
Open
onamfc wants to merge 1 commit into
Open
feat(safety): UGC moderation for App Store Guideline 1.2 compliance#1onamfc wants to merge 1 commit into
onamfc wants to merge 1 commit into
Conversation
- EULA gate: new onboarding step with zero-tolerance terms acceptance - Content filter: obscenity-based check in create screen, pre-encryption - Report: reveal-screen report flow; reports carry decrypted content to POST /api/reports for review within 24h (REPORT_WEBHOOK_URL alert) - Block: server-enforced blocklist (silent drop) + client-side filtering, managed under Settings -> Safety - Ban: banned_phones table; banned users rejected on every authenticated endpoint and at OTP re-verification; admin routes (ADMIN_TOKEN) to list reports, resolve, ban/unban - In-app contact: Report a Problem mailto support@linkforty.com - Terms page: 18+ eligibility, zero-tolerance clause, moderation policy
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.
Implements every precaution Apple required in the 1.2 (Safety – User Generated Content) rejection so the app can be resubmitted.
App
obscenity-based filter runs in the create screen before encryption (E2E means the server can never filter). Blocks profanity incl. leet-speak variants.Server
reports,blocks,banned_phones(auto-created on boot).POST /api/reports— reports carry the decrypted text from the reporter's device; optionalREPORT_WEBHOOK_URLalert for the 24h SLA.POST/DELETE/GET /api/blocks— enforced server-side; blocked senders get a fake success and the message is silently dropped.ADMIN_TOKENheader auth): list/resolve reports, ban/unban. Bans reject every authenticated call, refuse OTP re-verification, deregister devices, and purge undelivered messages.Web
Verification
Deploy notes
Requires new Railway env vars:
ADMIN_TOKEN(required for admin routes),REPORT_WEBHOOK_URL(optional). Deploy server + web before submitting the new binary.