Skip to content

Commit d6bd8f8

Browse files
committed
fix(defaultImage) : mainpage, post에서 디폴트 이미지 기본 프로필로 설정
1 parent 02e5de5 commit d6bd8f8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/com/example/FixLog/service/MainPageService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public MainPageService(PostRepository postRepository, MemberService memberServic
2929
// 이미지 null일 때 default 사진으로 변경 (프로필 사진,
3030
public String getDefaultImage(String image){
3131
String imageUrl = (image == null || image.isBlank())
32-
? "https://example.com/default-cover-image.png" : image;
32+
? "https://fixlog-bucket.s3.ap-northeast-2.amazonaws.com/default/profile.png" : image;
3333
System.out.println(imageUrl);
3434
return imageUrl;
3535
}

src/main/java/com/example/FixLog/service/PostService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public PostService(PostRepository postRepository, PostLikeRepository postLikeRep
5151
// 이미지 null일 때 default 사진으로 변경 (프로필 사진,
5252
public String getDefaultImage(String image){
5353
String imageUrl = (image == null || image.isBlank())
54-
? "https://example.com/default-cover-image.png" : image;
54+
? "https://fixlog-bucket.s3.ap-northeast-2.amazonaws.com/default/profile.png" : image;
5555
System.out.println(imageUrl);
5656
return imageUrl;
5757
}

0 commit comments

Comments
 (0)