fix: 贴子标题中含有关键词时不屏蔽

This commit is contained in:
HuanCheng65 2023-07-23 23:02:37 +08:00
parent 7925c36f07
commit 39b1619ad8
No known key found for this signature in database
GPG Key ID: 5EC9DD60A32C7360
2 changed files with 2 additions and 2 deletions

View File

@ -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(

View File

@ -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)