커뮤니티 게시글 조회
- 내가 쓴 게시글은 무조건 보이도록 수정
This commit is contained in:
@@ -182,7 +182,7 @@ class CreatorCommunityService(
|
|||||||
|
|
||||||
val existOrdered = useCanRepository.isExistOrdered(postId = it.id, memberId = memberId)
|
val existOrdered = useCanRepository.isExistOrdered(postId = it.id, memberId = memberId)
|
||||||
|
|
||||||
val content = if (it.price > 0) {
|
val content = if (it.price > 0 && memberId != it.creatorId) {
|
||||||
if (existOrdered) {
|
if (existOrdered) {
|
||||||
it.content
|
it.content
|
||||||
} else {
|
} else {
|
||||||
@@ -208,7 +208,11 @@ class CreatorCommunityService(
|
|||||||
isCommentAvailable = it.isCommentAvailable,
|
isCommentAvailable = it.isCommentAvailable,
|
||||||
isAdult = false,
|
isAdult = false,
|
||||||
isLike = isLike,
|
isLike = isLike,
|
||||||
existOrdered = existOrdered,
|
existOrdered = if (memberId == it.creatorId) {
|
||||||
|
true
|
||||||
|
} else {
|
||||||
|
existOrdered
|
||||||
|
},
|
||||||
likeCount = likeCount,
|
likeCount = likeCount,
|
||||||
commentCount = commentCount,
|
commentCount = commentCount,
|
||||||
firstComment = firstComment
|
firstComment = firstComment
|
||||||
@@ -256,7 +260,7 @@ class CreatorCommunityService(
|
|||||||
|
|
||||||
val existOrdered = useCanRepository.isExistOrdered(postId = post.id!!, memberId = memberId)
|
val existOrdered = useCanRepository.isExistOrdered(postId = post.id!!, memberId = memberId)
|
||||||
|
|
||||||
val content = if (post.price > 0) {
|
val content = if (post.price > 0 && memberId != post.member!!.id) {
|
||||||
if (existOrdered) {
|
if (existOrdered) {
|
||||||
post.content
|
post.content
|
||||||
} else {
|
} else {
|
||||||
@@ -286,7 +290,11 @@ class CreatorCommunityService(
|
|||||||
isCommentAvailable = post.isCommentAvailable,
|
isCommentAvailable = post.isCommentAvailable,
|
||||||
isAdult = post.isAdult,
|
isAdult = post.isAdult,
|
||||||
isLike = isLike,
|
isLike = isLike,
|
||||||
existOrdered = existOrdered,
|
existOrdered = if (memberId == post.member!!.id!!) {
|
||||||
|
true
|
||||||
|
} else {
|
||||||
|
existOrdered
|
||||||
|
},
|
||||||
likeCount = likeCount,
|
likeCount = likeCount,
|
||||||
commentCount = commentCount,
|
commentCount = commentCount,
|
||||||
firstComment = firstComment
|
firstComment = firstComment
|
||||||
@@ -448,7 +456,7 @@ class CreatorCommunityService(
|
|||||||
|
|
||||||
val existOrdered = useCanRepository.isExistOrdered(postId = it.id, memberId = memberId)
|
val existOrdered = useCanRepository.isExistOrdered(postId = it.id, memberId = memberId)
|
||||||
|
|
||||||
val content = if (it.price > 0) {
|
val content = if (it.price > 0 && memberId != it.creatorId) {
|
||||||
if (existOrdered) {
|
if (existOrdered) {
|
||||||
it.content
|
it.content
|
||||||
} else {
|
} else {
|
||||||
@@ -474,7 +482,11 @@ class CreatorCommunityService(
|
|||||||
isCommentAvailable = it.isCommentAvailable,
|
isCommentAvailable = it.isCommentAvailable,
|
||||||
isAdult = false,
|
isAdult = false,
|
||||||
isLike = isLike,
|
isLike = isLike,
|
||||||
existOrdered = existOrdered,
|
existOrdered = if (memberId == it.creatorId) {
|
||||||
|
true
|
||||||
|
} else {
|
||||||
|
existOrdered
|
||||||
|
},
|
||||||
likeCount = likeCount,
|
likeCount = likeCount,
|
||||||
commentCount = commentCount,
|
commentCount = commentCount,
|
||||||
firstComment = firstComment
|
firstComment = firstComment
|
||||||
|
Reference in New Issue
Block a user