mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-10-01 01:36:06 -04:00
lint
This commit is contained in:
parent
f2e5ba8295
commit
1893b3c722
@ -67,7 +67,7 @@ export class NsfwProtection extends Protection {
|
||||
|
||||
}
|
||||
}
|
||||
} else if (prediction["className"] === "Hentai"){
|
||||
} else if (prediction["className"] === "Hentai") {
|
||||
if (prediction["probability"] > mjolnir.config.nsfwSensitivity) {
|
||||
await mjolnir.managementRoomOutput.logMessage(LogLevel.INFO, "NSFWProtection", `Redacting ${event["event_id"]} for inappropriate content.`);
|
||||
try {
|
||||
|
@ -102,7 +102,7 @@ export class ProtectionManager {
|
||||
protection.settings[key].setValue(value);
|
||||
}
|
||||
if (protection.enabled) {
|
||||
if (protection.name == "NsfwProtection") {
|
||||
if (protection.name === "NsfwProtection") {
|
||||
(protection as NsfwProtection).initialize()
|
||||
}
|
||||
for (let roomId of this.mjolnir.protectedRoomsTracker.getProtectedRooms()) {
|
||||
|
Loading…
Reference in New Issue
Block a user