fix(community): 리스트 잠금 반응 표시를 숨긴다

This commit is contained in:
2026-07-12 09:54:10 +09:00
parent ced226c3ef
commit 9da6c7381d
5 changed files with 24 additions and 2 deletions
@@ -77,6 +77,21 @@ class CreatorChannelCommunityMapperTest {
assertFalse(item.showPlayButton)
}
@Test
fun `유료 미구매 타인 게시글은 reaction 현황과 댓글을 숨긴다`() {
val item = listOf(
communityPost(
price = 100,
existOrdered = false,
isCommentAvailable = true
)
).toCommunityPostUiModels(relativeTimeTextFormatter, isOwner = false, currentUserId = 99L).single()
assertTrue(item.isLocked)
assertFalse(item.showReaction)
assertFalse(item.showComment)
}
@Test
fun `고정 게시글 여부는 owner more 정책에서 사용할 수 있도록 UI 모델에 보존한다`() {
val pinnedItem = listOf(communityPost(isPinned = true))