From 533a905c40a289740f1b49c924c1bec7551ce009 Mon Sep 17 00:00:00 2001 From: Lex Lim Date: Fri, 6 Dec 2024 10:50:13 +0000 Subject: [PATCH] Update for MW 1.42.0 --- includes/AIReviewJob.php | 5 ++--- includes/AliyunAIReview.php | 1 - includes/Hooks.php | 3 +-- includes/LogFormatter.php | 9 ++++----- 4 files changed, 7 insertions(+), 11 deletions(-) diff --git a/includes/AIReviewJob.php b/includes/AIReviewJob.php index 0c97040..eb7b734 100644 --- a/includes/AIReviewJob.php +++ b/includes/AIReviewJob.php @@ -3,9 +3,8 @@ namespace Isekai\AIReview; use Job; use MediaWiki\MediaWikiServices; -use Title; -use User; -use RequestContext; +use MediaWiki\Title\Title; +use MediaWiki\Context\RequestContext; use ModerationViewableEntry; class AIReviewJob extends Job { diff --git a/includes/AliyunAIReview.php b/includes/AliyunAIReview.php index a645c06..ec598b9 100644 --- a/includes/AliyunAIReview.php +++ b/includes/AliyunAIReview.php @@ -3,7 +3,6 @@ namespace Isekai\AIReview; use AlibabaCloud\Client\AlibabaCloud; use AlibabaCloud\Green\Green; -use Exception; class AliyunAIReview { private const MAX_LENGTH = 10000; diff --git a/includes/Hooks.php b/includes/Hooks.php index 4bdac33..0e5a8fd 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -1,9 +1,8 @@