mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SpamBlacklist
synced 2024-11-24 15:13:44 +00:00
Merge "Use WikiPage::prepareContentForEdit in SpamBlacklistHooks::filterMergedContent"
This commit is contained in:
commit
fc94146189
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue