Summary
The CaptchaScoreHooks hook is logging hCaptcha risk scores for null edits with the same action type as regular edits. Null edits don't change page content, so they should be distinguished from actual edits.
Technical notes
- The CaptchaScoreHooks::onPageSaveComplete method in includes/EditPage/CaptchaScoreHooks.php receives the $editResult parameter but doesn't check $editResult->isNullEdit() before logging risk scores. We can adjust the logic to use the proper action to log the score nonetheless.
Acceptance criteria
- CaptchaScoreHooks::onPageSaveComplete checks $editResult->isNullEdit() and sets the action to "null_edit" instead of CaptchaTriggers::EDIT when it's a null edit