Merge commit '5d9d794f159b6056ba49c819aabe0322e5598be2'

This commit is contained in:
Isaac
2024-08-12 22:34:43 +08:00
21 changed files with 132 additions and 125 deletions

View File

@@ -380,7 +380,7 @@ public extension Message {
}
func isSensitiveContent(platform: String) -> Bool {
if let rule = self.restrictedContentAttribute?.rules.first(where: { $0.isSensitive }) {
if let rule = self.restrictedContentAttribute?.rules.first(where: { $0.reason == "sensitive" }) {
if rule.platform == "all" || rule.platform == platform {
return true
}