Bugfixes, Dating angefangen
Some checks failed
Host-Based Deploy (Java 21 Fix) / build-and-run (push) Has been cancelled
Some checks failed
Host-Based Deploy (Java 21 Fix) / build-and-run (push) Has been cancelled
This commit is contained in:
@@ -58,7 +58,7 @@ public class SocialController {
|
||||
// ── User Profile ──
|
||||
|
||||
@GetMapping("/users/{userId}")
|
||||
public ResponseEntity<UserProfile> getUserProfile(@PathVariable UUID userId, Principal principal) {
|
||||
public ResponseEntity<UserProfile> getUserProfile(@PathVariable("userId") UUID userId, Principal principal) {
|
||||
UUID myId = userService.requireUser(principal).getUserId();
|
||||
return userRepository.findById(userId)
|
||||
.map(u -> ResponseEntity.ok(toUserProfileWithStatus(u, myId)))
|
||||
@@ -142,7 +142,7 @@ public class SocialController {
|
||||
}
|
||||
|
||||
@GetMapping("/friends/user/{userId}")
|
||||
public ResponseEntity<List<UserProfile>> getFriendsOfUser(@PathVariable UUID userId, Principal principal) {
|
||||
public ResponseEntity<List<UserProfile>> getFriendsOfUser(@PathVariable("userId") UUID userId, Principal principal) {
|
||||
userService.requireUser(principal);
|
||||
List<UserProfile> profiles = friendshipRepository.findFriends(userId, Status.ACCEPTED).stream()
|
||||
.map(f -> {
|
||||
@@ -267,7 +267,7 @@ public class SocialController {
|
||||
|
||||
@GetMapping("/messages/{partnerId}")
|
||||
public ResponseEntity<?> getConversation(
|
||||
@PathVariable UUID partnerId,
|
||||
@PathVariable("partnerId") UUID partnerId,
|
||||
@RequestParam(required = false) String before,
|
||||
@RequestParam(required = false) String after,
|
||||
Principal principal) {
|
||||
|
||||
Reference in New Issue
Block a user