Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

게시글, 댓글에 프로필사진 보여주기 #78

Merged
merged 4 commits into from
Aug 30, 2024

Conversation

eastshine2741
Copy link
Collaborator

추가된 점

  • 게시글과 댓글 작성자의 프사 url을 서버에서 받아와 보여줍니다

기타

CommunityProfilePicture(model = null) // TODO: 서버에서 프로필이미지 내려주면 반영하기
CommunityProfilePicture(model = post.profilePicture)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

지금은 프로필이 비어 있으면 서버에서 기본 프로필을 내려 주지 않아서 클라에 따로 리소스 수정하고 구현해야 한다는 말이지?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

서버에 문의해보니까 기본 프로필이미지를 내려주는 대신 기본인지 아닌지 Bool을 내려줄려는 거 같아서 기본일때 user의 프로필 이미지를 R.drawable에서 가져다 쓰는 방법으로 해야할 듯? UserAccount(닉네임이랑 프로필이미지 바꾸는 화면)에서도 그렇게 할려고

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아하... 클라들이 귀찮게 됐네

CommunityProfilePicture(model = null) // TODO: 서버에서 프로필이미지 내려주면 반영하기
CommunityProfilePicture(model = post.profilePicture)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

서버에 문의해보니까 기본 프로필이미지를 내려주는 대신 기본인지 아닌지 Bool을 내려줄려는 거 같아서 기본일때 user의 프로필 이미지를 R.drawable에서 가져다 쓰는 방법으로 해야할 듯? UserAccount(닉네임이랑 프로필이미지 바꾸는 화면)에서도 그렇게 할려고

@eastshine2741 eastshine2741 merged commit 9a7f800 into develop Aug 30, 2024
2 checks passed
@eastshine2741 eastshine2741 deleted the eastshine2741/show-profile-picture branch August 30, 2024 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants