fix: 无标题贴子重复显示标题

This commit is contained in:
HuanCheng65 2023-10-06 13:11:00 +08:00
parent 4c35d3afa8
commit d1a40fa4a1
No known key found for this signature in database
GPG Key ID: 5EC9DD60A32C7360
1 changed files with 1 additions and 1 deletions

View File

@ -1621,7 +1621,7 @@ fun PostCard(
val paddingModifier = Modifier.padding(start = if (hasPadding) Sizes.Small + 8.dp else 0.dp)
val author = postHolder.get { author!! }
val showTitle = remember(postHolder) {
post.title.isNotBlank() && post.floor <= 1
post.title.isNotBlank() && post.floor <= 1 && post.is_ntitle != 1
}
val hasAgreed = remember(postHolder) {
post.agree?.hasAgree == 1