Skip to content

Commit b4730e1

Browse files
committed
build: 1.3.7
1 parent a1cd1e3 commit b4730e1

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

build.gradle.kts

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77
}
88

99
group = "io.github.gnuf0rce"
10-
version = "1.3.6"
10+
version = "1.3.7"
1111

1212
mavenCentralPublish {
1313
useCentralS01()
@@ -26,7 +26,7 @@ repositories {
2626
}
2727

2828
dependencies {
29-
api("xyz.cssxsh.baidu:baidu-aip:3.1.4") {
29+
api("xyz.cssxsh.baidu:baidu-aip:3.1.6") {
3030
exclude(group = "org.jetbrains.kotlin")
3131
exclude(group = "org.jetbrains.kotlinx")
3232
exclude(group = "org.slf4j")

src/main/kotlin/io/github/gnuf0rce/mirai/censor/MiraiContentCensorRecorder.kt

+4-4
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ public object MiraiContentCensorRecorder {
7373
ContentCensorHistory.records
7474
.asSequence()
7575
.filter { it.fromId == fromId && it.time in start..end }
76-
.sortedByDescending { it.time }
77-
.toList()
76+
.toMutableList()
77+
.apply { sortByDescending { it.time } }
7878
}
7979
}
8080

@@ -97,8 +97,8 @@ public object MiraiContentCensorRecorder {
9797
ContentCensorHistory.records
9898
.asSequence()
9999
.filter { it.targetId == targetId && it.time in start..end }
100-
.sortedByDescending { it.time }
101-
.toList()
100+
.toMutableList()
101+
.apply { sortByDescending { it.time } }
102102
}
103103
}
104104
}

src/main/kotlin/io/github/gnuf0rce/mirai/censor/command/MiraiCensorRecordCommand.kt

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ internal object MiraiCensorRecordCommand : CompositeCommand(
4444
val list = MiraiContentCensorRecorder.from(sender, start, end)
4545
sendMessage(list.render())
4646
}
47+
4748
@SubCommand
4849
suspend fun CommandSender.target(subject: Long, date: LocalDate) {
4950
val start = date

0 commit comments

Comments
 (0)