Commit Graph

5 Commits

Author SHA1 Message Date
SlimusMinus
e02f8cdb6b Add anti-fraud verification questions and scam warnings
- posts can carry up to 3 verification questions (post_verification_questions,
  changelog 026); to contact the author one answers them first
- POST /api/v1/posts/{id}/claim creates a PENDING chat with the answers as a
  CLAIM message; the claimant cannot write or see the phone until the author
  approves via POST /api/v1/chats/{chatId}/verification
- plain first message to such a post and phone reveal return 403
  VERIFICATION_REQUIRED; GET /api/v1/chats/{chatId} exposes the status
- FraudSignals flags prepayment, card data (Luhn) and SMS-code requests in
  messages (MessageDto.fraudSignal); ChatDto.otherUserCreatedAt for new accounts
- claim limits: 5 per day per account, 2 per post per 30 days, 10/h per IP
- docs/anti-fraud.md, tests

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-11 01:04:31 +03:00
SlimusMinus
78c6127209 Document chat attachments, phone protection and closedAt
- new docs/chats.md: chat model, API, photo and video attachments, video
  processing, file access, deletion, limits, deployment notes
- README: links to chats.md and phone-protection.md, ffprobe and phone
  settings, background jobs, rate limits, phone and chat endpoints,
  closedAt lifecycle, message_attachments, new tests, limitations
- images-storage.md and redis.md: chat files, reencode, CORS for video
  uploads, new Redis keys

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 21:46:21 +03:00
SlimusMinus
1cd72fbec4 fixed show phone number 2026-10-27 22:49:16 +03:00
SlimusMinus
ba6935bb1f Document multi-instance setup, rate limits and the new ad flow
README: new environment variables, ShedLock jobs and the multi-instance
section, rate limits and login lockout, profile privacy and token reissue,
WebSocket fan-out, 429 errors, tests and the updated limitations.
docs/advertising.md: serve -> impression -> click with signed tokens,
per-campaign daily caps, stats endpoint, campaign auto-finish, ads.* settings.
docs/redis.md: all new keys, pub/sub, locks, rate limiting, failure modes.
docs/images-storage.md: uploads outside transactions and orphan cleanup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 01:46:18 +03:00
SlimusMinus
83270a8ece Rewrite README and add docs for advertising, Redis and image storage
README described Spring Boot 3.2.5/Java 21, an open /api/v1/test, the removed
MapCacheService and a single smoke test. It now matches the code: setup,
environment variables, architecture, packages, security rules, API, WebSocket
topics, post lifecycle, errors, tests, deploy and known limitations.

docs/advertising.md, docs/redis.md and docs/images-storage.md describe the
subsystems with references to the classes. .env.example lists the remaining
optional variables.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 01:15:37 +03:00