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
73463f6c5b
Merge pull request #46 from SlimusMinus/fix-chat-per-post
...
deploy-backend / deploy (push) Successful in 1m21s
Fix chat per post
2026-10-13 01:34:17 +03:00
SlimusMinus
da7d68c31a
add ChatService tests for creating a chat about an ad
...
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com >
2026-10-13 01:31:33 +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
008852c781
Merge pull request #45 from SlimusMinus/fix-feed-pagination
...
deploy-backend / deploy (push) Successful in 1m23s
fix feed pagination order, moderation reject and cache invalidation
2026-10-13 01:10:47 +03:00
SlimusMinus
d19f03d412
fix feed pagination order, moderation reject and cache invalidation
...
- getFeed: add id DESC as tie-breaker so posts with equal createdAt
are not duplicated or lost between pages
- moderation: AI verdict false now sets REJECTED instead of ACTIVE
- nightly cleanup: invalidate feed and map caches after deleting posts
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com >
2026-10-13 01:07:26 +03:00
SlimusMinus
5ea7b438f5
Merge pull request #44 from SlimusMinus/fix-get_image
...
deploy-backend / deploy (push) Successful in 1m27s
fixed getting image from minio
2026-10-13 00:43:45 +03:00
SlimusMinus
9dbf2dd043
fixed getting image from minio
2026-10-13 00:43:06 +03:00
SlimusMinus
e321fa4c60
Merge pull request #43 from SlimusMinus/add-timezone
...
deploy-backend / deploy (push) Successful in 1m27s
added timezone for all create date
2026-10-11 23:26:58 +03:00
SlimusMinus
4119b767c3
added timezone for all create date
2026-10-11 23:26:11 +03:00
SlimusMinus
68d53fadf3
Merge pull request #42 from SlimusMinus/go-to_test
...
Add Docker build and deploy pipeline
2026-10-08 01:23:01 +03:00
SlimusMinus
818c8f6a11
Add Docker build and deploy pipeline
deploy-backend / deploy (push) Successful in 8m24s
2026-10-07 22:56:56 +03:00
SlimusMinus
efdae92787
Merge pull request #41 from SlimusMinus/add-reject_post
...
added EP rejected posts for admin
2026-10-06 02:09:21 +03:00
SlimusMinus
1a7b96e8a6
added EP rejected posts for admin
2026-10-06 02:08:28 +03:00
SlimusMinus
7adc4f28f1
Merge pull request #40 from SlimusMinus/add-lan_lat
...
added latitude and longitude in PostResponse
2026-10-06 01:22:58 +03:00
SlimusMinus
e53c5e3ba7
added latitude and longitude in PostResponse
2026-10-06 01:21:56 +03:00
SlimusMinus
59872436b9
Merge pull request #39 from SlimusMinus/fix-admin_tools
...
added all edit posts for admin
2026-10-02 01:54:56 +03:00
SlimusMinus
bffd259c25
added all edit posts for admin
2026-10-02 01:54:19 +03:00
SlimusMinus
c8a3cca059
Merge pull request #38 from SlimusMinus/fix-25_jdk
...
changed jdk on 25 springBoot on 3.5.6 and fix code
2026-09-30 00:27:58 +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
1efb67824f
Merge pull request #37 from SlimusMinus/add-redis
...
added posts on feed and posts on map
2026-09-29 01:04:39 +03:00
SlimusMinus
870739f45f
added posts on feed and posts on map
2026-09-29 01:03:54 +03:00
SlimusMinus
a44ca00222
Merge pull request #36 from SlimusMinus/del-likes
...
deleted likes
2026-09-24 00:18:56 +03:00
SlimusMinus
0afb2397cf
deleted likes
2026-09-24 00:18:13 +03:00
SlimusMinus
ca06c2a5c3
Merge pull request #35 from SlimusMinus/add-advertising
...
added advertising
2026-09-23 23:36:55 +03:00
SlimusMinus
942cd09585
added advertising
2026-09-23 23:34:05 +03:00
SlimusMinus
05d93d6b0a
Merge pull request #34 from SlimusMinus/add-reward
...
added reward text
2026-09-10 01:02:41 +03:00
SlimusMinus
5b06b420ef
added reward text
2026-09-10 01:02:03 +03:00
SlimusMinus
f9e9bdf7cb
Merge pull request #33 from SlimusMinus/fix-minio
...
fixed minio lifecycle on 180 days
2026-09-09 23:48:06 +03:00
SlimusMinus
4ebd16f48d
fixed minio lifecycle on 180 days
2026-09-09 23:44:50 +03:00
SlimusMinus
0c5ccd473c
Merge pull request #32 from SlimusMinus/fix-image_moderation
...
fixed image moderation and dell redis config
2026-09-07 01:39:52 +03:00
SlimusMinus
e83c08b395
fixed image moderation and dell redis config
2026-09-07 01:39:07 +03:00
SlimusMinus
144bdaa667
Merge pull request #31 from SlimusMinus/fix-get_user_profile
...
added get user by id
2026-09-03 00:27:44 +03:00
SlimusMinus
63864011ef
added get user by id
2026-09-03 00:26:57 +03:00
SlimusMinus
9a80de54b5
Merge pull request #30 from SlimusMinus/add-post_by_id
...
added find post by id on map
2026-08-28 00:21:29 +03:00
SlimusMinus
ddebb5cf93
added find post by id on map
2026-08-27 01:31:50 +03:00
SlimusMinus
c85a321f24
Merge pull request #29 from SlimusMinus/add-favorites_posts
...
added functional favorites posts
2026-08-24 00:49:00 +03:00
SlimusMinus
fe6e98170b
added functional favorites posts
2026-08-24 00:48:22 +03:00
SlimusMinus
e68d9910de
Merge pull request #28 from SlimusMinus/add-search_map
...
added searchMap methods
2026-08-20 01:36:07 +03:00
SlimusMinus
a44b6c42ba
added searchMap methods
2026-08-20 01:35:23 +03:00
SlimusMinus
e980f56c61
Merge pull request #27 from SlimusMinus/fix-chat
...
fixed response chats
2026-08-13 00:35:19 +03:00
SlimusMinus
8363d1602c
fixed response chats
2026-08-13 00:34:24 +03:00
SlimusMinus
1f4eb0faba
Merge pull request #26 from SlimusMinus/fix-web_socket
...
fixed web-socket and add rewards on post
2026-08-12 00:42:39 +03:00
SlimusMinus
13ed934c60
fixed web-socket and add rewards on post
2026-08-12 00:41:31 +03:00
SlimusMinus
f3ba7e6512
Merge pull request #25 from SlimusMinus/add-city_filter
...
added filter by city
2026-08-05 00:52:41 +03:00
SlimusMinus
e7dfef7327
added filter by city
2026-08-05 00:52:00 +03:00
SlimusMinus
458ef136d3
Merge pull request #24 from SlimusMinus/fix-geocoding_serice
...
fixed GeocodingService add alter city
2026-08-04 00:35:17 +03:00
SlimusMinus
7429515143
fixed GeocodingService add alter city
2026-08-04 00:33:17 +03:00
SlimusMinus
619ce7086b
Merge pull request #23 from SlimusMinus/fix-security
...
added refresh token
2026-08-03 02:52:23 +03:00
SlimusMinus
7660128d96
added refresh token
2026-08-03 02:43:46 +03:00