fix: 贴子标题中含有关键词时不屏蔽
This commit is contained in:
parent
7925c36f07
commit
39b1619ad8
|
|
@ -191,7 +191,7 @@ private fun ThreadList(
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.padding(vertical = 8.dp, horizontal = 16.dp)
|
.padding(vertical = 8.dp, horizontal = 16.dp)
|
||||||
.clip(RoundedCornerShape(6.dp))
|
.clip(RoundedCornerShape(6.dp))
|
||||||
.background(ExtendedTheme.colors.floorCard)
|
.background(ExtendedTheme.colors.card)
|
||||||
.padding(vertical = 8.dp, horizontal = 16.dp)
|
.padding(vertical = 8.dp, horizontal = 16.dp)
|
||||||
) {
|
) {
|
||||||
Text(
|
Text(
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ object BlockManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
fun ThreadInfo.shouldBlock(): Boolean =
|
fun ThreadInfo.shouldBlock(): Boolean =
|
||||||
shouldBlock(abstractText) || shouldBlock(authorId, author?.name)
|
shouldBlock(title) || shouldBlock(abstractText) || shouldBlock(authorId, author?.name)
|
||||||
|
|
||||||
fun Post.shouldBlock(): Boolean =
|
fun Post.shouldBlock(): Boolean =
|
||||||
shouldBlock(content.plainText) || shouldBlock(author_id, author?.name)
|
shouldBlock(content.plainText) || shouldBlock(author_id, author?.name)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue