Update for MW 1.42.0

master
落雨楓 1 month ago
parent 475a3d294a
commit 533a905c40

@ -3,9 +3,8 @@ namespace Isekai\AIReview;
use Job; use Job;
use MediaWiki\MediaWikiServices; use MediaWiki\MediaWikiServices;
use Title; use MediaWiki\Title\Title;
use User; use MediaWiki\Context\RequestContext;
use RequestContext;
use ModerationViewableEntry; use ModerationViewableEntry;
class AIReviewJob extends Job { class AIReviewJob extends Job {

@ -3,7 +3,6 @@ namespace Isekai\AIReview;
use AlibabaCloud\Client\AlibabaCloud; use AlibabaCloud\Client\AlibabaCloud;
use AlibabaCloud\Green\Green; use AlibabaCloud\Green\Green;
use Exception;
class AliyunAIReview { class AliyunAIReview {
private const MAX_LENGTH = 10000; private const MAX_LENGTH = 10000;

@ -1,9 +1,8 @@
<?php <?php
namespace Isekai\AIReview; namespace Isekai\AIReview;
use JobQueueGroup;
use MediaWiki\MediaWikiServices; use MediaWiki\MediaWikiServices;
use Title; use MediaWiki\Title\Title;
class Hooks { class Hooks {
public static function onModerationPending($fields, $mod_id){ public static function onModerationPending($fields, $mod_id){

@ -3,11 +3,10 @@ namespace Isekai\AIReview;
use LogFormatter as GlobalLogFormatter; use LogFormatter as GlobalLogFormatter;
use MediaWiki\MediaWikiServices; use MediaWiki\MediaWikiServices;
use SpecialPage; use MediaWiki\SpecialPage\SpecialPage;
use Message; use MediaWiki\Message\Message;
use Linker; use MediaWiki\Linker\Linker;
use Title; use MediaWiki\Title\Title;
use User;
class LogFormatter extends GlobalLogFormatter { class LogFormatter extends GlobalLogFormatter {
/** /**

Loading…
Cancel
Save