test #333

Merged
klaus merged 8 commits from test into main 2025-07-21 09:54:57 +00:00
3 changed files with 15 additions and 3 deletions
Showing only changes of commit 3d695069a2 - Show all commits

View File

@ -75,7 +75,13 @@ class HomeService(
}
.map {
val followerCount = explorerQueryRepository.getNotificationUserIds(it.id!!).size
it.toExplorerSectionCreator(imageHost, followerCount)
val follow = if (memberId != null) {
explorerQueryRepository.isFollow(it.id!!, memberId = memberId)
} else {
false
}
it.toExplorerSectionCreator(imageHost, follow, followerCount = followerCount)
}
val latestContentThemeList = contentThemeService.getActiveThemeOfContent(

View File

@ -15,5 +15,6 @@ data class GetExplorerSectionCreatorResponse(
val nickname: String,
val tags: String,
val profileImageUrl: String,
val follow: Boolean,
val followerCount: Int
)

View File

@ -123,7 +123,11 @@ data class Member(
}
}
fun toExplorerSectionCreator(imageHost: String, followerCount: Int = 0): GetExplorerSectionCreatorResponse {
fun toExplorerSectionCreator(
imageHost: String,
follow: Boolean = false,
followerCount: Int = 0
): GetExplorerSectionCreatorResponse {
return GetExplorerSectionCreatorResponse(
id = id!!,
nickname = nickname,
@ -136,7 +140,8 @@ data class Member(
} else {
"$imageHost/profile/default-profile.png"
},
followerCount = followerCount
followerCount = followerCount,
follow = follow
)
}
}