Commit Graph

7 Commits

Author SHA1 Message Date
SlimusMinus
cd0d2a4081 create chats only together with the first message
- GET /api/v1/chats/with/{otherUserId}?postId= finds an existing chat
  (404 if there is none) and never creates one
- POST /api/v1/chats/with/{otherUserId}/messages?postId= with {content}
  finds or creates the chat and saves the first message in one
  transaction; same participant/post checks as before, WebSocket events
  still sent after commit
- the old POST /with/{otherUserId} that created empty chats is removed
- chat list hides chats without messages (existing empty rows stay in DB)
- empty messages are rejected with 400

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-13 01:45:18 +03:00
SlimusMinus
942cd09585 added advertising 2026-09-23 23:34:05 +03:00
SlimusMinus
2468c26b84 fixed controllers 2026-07-31 01:08:53 +03:00
SlimusMinus
97f28b9eca added filter on title and description on post 2026-07-06 00:47:07 +03:00
SlimusMinus
236d00f2f9 added chats with another users 2026-06-22 01:08:47 +03:00
SlimusMinus
dfcd77fe88 del front and add auth 2026-05-04 00:46:20 +03:00
SlimusMinus
263242e469 start backend 2026-03-26 00:21:30 +03:00