protected function calcContentLength(AbstractRevision $revision)
 {
     if ($revision->isModerated() && !$revision->isLocked()) {
         return 0;
     } else {
         return $revision->getContentLength() ?: mb_strlen($revision->getContent('wikitext'));
     }
 }