Compare commits
2 Commits
6aec31711d
...
8f50d05906
| Author | SHA1 | Date | |
|---|---|---|---|
| 8f50d05906 | |||
| 88520dbc7f |
@@ -113,6 +113,9 @@ class LiveRecommendRepository(
|
|||||||
.orderBy(Expressions.numberTemplate(Double::class.java, "function('rand')").asc())
|
.orderBy(Expressions.numberTemplate(Double::class.java, "function('rand')").asc())
|
||||||
.limit(limit)
|
.limit(limit)
|
||||||
.fetch()
|
.fetch()
|
||||||
|
.asSequence()
|
||||||
|
.filter { !isBlocked(it.creatorId) }
|
||||||
|
.toList()
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getOnAirFollowingChannelList(
|
fun getOnAirFollowingChannelList(
|
||||||
@@ -188,6 +191,9 @@ class LiveRecommendRepository(
|
|||||||
.orderBy(Expressions.numberTemplate(Double::class.java, "function('rand')").asc())
|
.orderBy(Expressions.numberTemplate(Double::class.java, "function('rand')").asc())
|
||||||
.limit(limit)
|
.limit(limit)
|
||||||
.fetch()
|
.fetch()
|
||||||
|
.asSequence()
|
||||||
|
.filter { !isBlocked(it.creatorId) }
|
||||||
|
.toList()
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getCreatorFollowingAllListTotalCount(memberId: Long, isBlocked: (Long) -> Boolean): Int {
|
fun getCreatorFollowingAllListTotalCount(memberId: Long, isBlocked: (Long) -> Boolean): Int {
|
||||||
|
|||||||
@@ -376,7 +376,7 @@ class MemberService(
|
|||||||
)
|
)
|
||||||
|
|
||||||
if (blockMember != null) {
|
if (blockMember != null) {
|
||||||
blockMember.isActive = true
|
blockMember.isActive = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user