diff --git a/SpamBlacklistHooks.php b/SpamBlacklistHooks.php index 54f833cb..0ceb4fa0 100644 --- a/SpamBlacklistHooks.php +++ b/SpamBlacklistHooks.php @@ -25,7 +25,8 @@ class SpamBlacklistHooks { } // get the link from the not-yet-saved page content. - $pout = $content->getParserOutput( $title ); + $editInfo = $context->getWikiPage()->prepareContentForEdit( $content ); + $pout = $editInfo->output; $links = array_keys( $pout->getExternalLinks() ); // HACK: treat the edit summary as a link