refactor: Rev::matches replaces the inline rev checks

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01At3V6SjwbMe6eMzVGW3Hs7
This commit is contained in:
2026-09-26 01:15:29 +02:00
co-authored by Claude Opus 5.5
parent 0c4da28855
commit 6a7193424c
5 changed files with 23 additions and 3 deletions
@@ -107,7 +107,7 @@ final class RevisionRestoreAbility implements Ability
));
}
if (! isset($input['rev']) || $input['rev'] !== Rev::ofPost($post)) {
if (! Rev::matches($input, $post)) {
return Errors::revMismatch();
}