Skip to content

Commit

Permalink
🔨 Refactor/#183 - 카카오 프로필 이미지 url 가공 (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
dongkyeomjang authored Nov 27, 2024
1 parent 00348a8 commit 458139c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public class UserService {
public User createUser(KakaoOauth2UserInfo requestDto, String encodedPassword) {
String profileImageUrl = Optional.ofNullable(requestDto.kakaoAccount().profile())
.map(KakaoOauth2UserInfo.KakaoAccountDto.KakaoProfileDto::profileImageUrl)
.map(url -> url.startsWith("http://") ? url.replace("http://", "https://") : url)
.orElse("NONE");

String nickname = Optional.ofNullable(requestDto.kakaoAccount().profile())
Expand Down

0 comments on commit 458139c

Please sign in to comment.