处理个人主页文章关闭评论显示问题

This commit is contained in:
张玉久
2020-06-11 15:21:05 +08:00
parent 68a9d5d771
commit 2155a33689

View File

@ -27,7 +27,8 @@ data class PersonalHistoryEntity(
var foldUsers: List<UserEntity>? = null,
val images: List<String> = ArrayList(),
val me: MeEntity = MeEntity(),
var comment: Comment = Comment()) : Parcelable {
var comment: Comment = Comment(),
var commentable: Boolean = true) : Parcelable {
fun getPassVideos(): List<CommunityVideoEntity> {
val passVideos = arrayListOf<CommunityVideoEntity>()
@ -93,6 +94,7 @@ data class PersonalHistoryEntity(
answer.vote = count.vote
answer.commentCount = count.comment
answer.me = me
answer.commentable = commentable
if (type.contains("article")) {
answer.type = "community_article"
}