Commit Graph

18 Commits

Author SHA1 Message Date
SlimusMinus
01ac227bdb fixed address for map 2026-10-15 00:02:10 +03:00
SlimusMinus
45c4273ea8 fix chats: one chat per ad, ordering, delivery after commit, errors
A chat was unique per user pair, so contacting the same author about a
second ad returned the old chat with the old post_id, and the chat list
showed the other ad's title and image.

- chats are unique per (user_one_id, user_two_id, post_id); migration 015
  drops the old pair constraint whatever its name and adds the new one
- getOrCreateChat looks the chat up by users and post, and checks that the
  other user exists and the post belongs to one of the participants
- chat list is sorted by last message time (chat creation as fallback)
- WebSocket message and unread events are sent only after commit
- chat errors are ApiException: 404 not found, 403 not a participant,
  400 validation; messages are limited to 4000 characters
- Post.images ordered by id so the cover image is stable everywhere

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-13 01:23:09 +03:00
SlimusMinus
4119b767c3 added timezone for all create date 2026-10-11 23:26:11 +03:00
SlimusMinus
015b68d96d changed jdk on 25 springBoot on 3.5.6 and fix code 2026-09-30 00:27:10 +03:00
SlimusMinus
942cd09585 added advertising 2026-09-23 23:34:05 +03:00
SlimusMinus
5b06b420ef added reward text 2026-09-10 01:02:03 +03:00
SlimusMinus
13ed934c60 fixed web-socket and add rewards on post 2026-08-12 00:41:31 +03:00
SlimusMinus
bea9696a28 added statistics for create and found posts 2026-07-30 00:18:05 +03:00
SlimusMinus
844b369f07 added field rules_accepted in posts 2026-07-29 01:22:49 +03:00
SlimusMinus
c49f2d108b added reviews 2026-06-23 00:09:57 +03:00
SlimusMinus
236d00f2f9 added chats with another users 2026-06-22 01:08:47 +03:00
SlimusMinus
bafb636cbe added security and fix edit profile 2026-06-18 00:22:50 +03:00
SlimusMinus
e4b07fcbff fixed category in posts 2026-06-11 00:52:56 +03:00
SlimusMinus
723e92baf1 added image for post 2026-06-01 01:57:16 +03:00
SlimusMinus
62d55d70d0 added phone for post 2026-05-29 01:19:10 +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
SlimusMinus
611b1c82ad added start backend 2026-03-24 00:34:04 +03:00