You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
439 B
PHTML

5 years ago
<?php
namespace Isekai\AIReview;
2 years ago
use MediaWiki\MediaWikiServices;
use MediaWiki\Title\Title;
5 years ago
class Hooks {
4 weeks ago
public static function onModerationPending($fields, $mod_id) {
5 years ago
//加入审核队列
2 years ago
$title = Title::newFromText($fields['mod_title']);
$job = new AIReviewJob($title, ['mod_id' => $mod_id]);
4 weeks ago
$jobQueue = MediaWikiServices::getInstance()->getJobQueueGroup();
$jobQueue->push($job);
5 years ago
}
}