Skip to content

Commit 236fb2e

Browse files
authored
Merge pull request #110 from FixLog/develop
기본 프로필 url 수정까지 main에 머지
2 parents 8bec8c7 + 836d525 commit 236fb2e

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/main/java/com/example/FixLog/dto/post/MyPostPageResponseDto.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class MyPostPageResponseDto {
2828
// 이미지 null일 때 default 사진으로 변경 - 프로필 사진
2929
public static String getDefaultProfile(String image){
3030
String imageUrl = (image == null || image.isBlank())
31-
? "https://fixlog-bucket.s3.ap-northeast-2.amazonaws.com/default/profile.png" : image;
31+
? "https://fixlogsmwubucket.s3.ap-northeast-2.amazonaws.com/default/DefaultImage.png" : image;
3232
System.out.println(imageUrl);
3333
return imageUrl;
3434
}

src/main/java/com/example/FixLog/mock/PostMockDataInitializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public void run(String... args) {
6666
Post post = Post.builder()
6767
.userId(member)
6868
.postTitle("테스트 업그레이드 " + (i + 2))
69-
.coverImage("https://fixlog-bucket.s3.ap-northeast-2.amazonaws.com/default/profile.png" + (i + 2) + ".jpg")
69+
.coverImage("https://fixlogsmwubucket.s3.ap-northeast-2.amazonaws.com/default/DefaultImage.png" + (i + 2) + ".jpg")
7070
.problem("이 게시물은 문제 설명이 200자를 넘도록 작성되었습니다. 문제 발생 상황, 재현 과정, 로그, 화면 캡처 등 다양한 정보가 포함될 수 있습니다. 이 텍스트는 말줄임표가 잘 붙는지 확인하기 위한 용도로 작성되었으며, 검색 결과에서는 200자까지만 보여야 합니다. 이후 내용은 생략될 수 있습니다. 추가 텍스트를 더 붙입니다. 더 붙입니다. 더 붙입니다.")
7171
.errorMessage("이건 에러다 keyword 포함")
7272
.environment("환경 정보")

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public MainPageService(PostRepository postRepository, MemberService memberServic
3030
// 이미지 null일 때 default 사진으로 변경 - 프로필 사진
3131
public String getDefaultProfile(String image){
3232
String imageUrl = (image == null || image.isBlank())
33-
? "https://fixlog-bucket.s3.ap-northeast-2.amazonaws.com/default/profile.png" : image;
33+
? "https://fixlogsmwubucket.s3.ap-northeast-2.amazonaws.com/default/DefaultImage.png" : image;
3434
System.out.println(imageUrl);
3535
return imageUrl;
3636
}
@@ -53,7 +53,7 @@ public MainPageResponseDto mainPageView(int sort, int size){
5353
String imageUrl = member.getProfileImageUrl();
5454
profileImageUrl = getDefaultProfile(imageUrl);
5555
} else {
56-
profileImageUrl = "https://fixlog-bucket.s3.ap-northeast-2.amazonaws.com/default/profile.png"; // 비로그인 기본 이미지
56+
profileImageUrl = "https://fixlogsmwubucket.s3.ap-northeast-2.amazonaws.com/default/DefaultImage.png"; // 비로그인 기본 이미지
5757
}
5858

5959
// 페이지 (글 12개) 불러오기
@@ -100,7 +100,7 @@ public MainPageResponseDto mainPageFullView(int sort, int page, int size){
100100
String imageUrl = member.getProfileImageUrl();
101101
profileImageUrl = getDefaultProfile(imageUrl);
102102
} else {
103-
profileImageUrl = "https://fixlog-bucket.s3.ap-northeast-2.amazonaws.com/default/profile.png"; // 비로그인 기본 이미지
103+
profileImageUrl = "https://fixlogsmwubucket.s3.ap-northeast-2.amazonaws.com/default/DefaultImage.png"; // 비로그인 기본 이미지
104104
}
105105

106106
// 페이지 설정 (한 페이지당 12개)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public PostService(PostRepository postRepository, PostLikeRepository postLikeRep
5757
// 이미지 null일 때 default 사진으로 변경 - 프로필 사진
5858
public String getDefaultProfile(String image){
5959
String imageUrl = (image == null || image.isBlank())
60-
? "https://fixlog-bucket.s3.ap-northeast-2.amazonaws.com/default/profile.png" : image;
60+
? "https://fixlogsmwubucket.s3.ap-northeast-2.amazonaws.com/default/DefaultImage.png" : image;
6161
System.out.println(imageUrl);
6262
return imageUrl;
6363
}
@@ -270,7 +270,7 @@ public PostResponseDto viewPost(Long postId){
270270
.anyMatch(bookmark -> bookmark.getFolderId().getUserId().equals(member));
271271
} else {
272272
nickname = "로그인하지 않았습니다.";
273-
profileImageUrl = "https://fixlog-bucket.s3.ap-northeast-2.amazonaws.com/default/profile.png"; // 비로그인 기본 이미지
273+
profileImageUrl = "https://fixlogsmwubucket.s3.ap-northeast-2.amazonaws.com/default/DefaultImage.png"; // 비로그인 기본 이미지
274274
isLiked = false;
275275
isMarked = false;
276276
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package com.example.FixLog.util;
22

33
public class DefaultImage {
4-
public static final String PROFILE = "https://fixlog-bucket.s3.ap-northeast-2.amazonaws.com/default/profile.png";
4+
public static final String PROFILE = "https://fixlogsmwubucket.s3.ap-northeast-2.amazonaws.com/default/DefaultImage.png";
55
}

0 commit comments

Comments
 (0)