jenkins-bot has submitted this change and it was merged.
Change subject: Don't generate html when calling getParserOutput
......................................................................
Don't generate html when calling getParserOutput
all that is needed are the external links
Bug: 67361
Change-Id: I8c44c8c306f5f20cb5edd8314bf53e3483e314b7
---
M SpamBlacklistHooks.php
1 file changed, 2 insertions(+), 1 deletion(-)
Approvals:
Hoo man: Looks good to me, approved
jenkins-bot: Verified
diff --git a/SpamBlacklistHooks.php b/SpamBlacklistHooks.php
index 54f833c..223c106 100644
--- a/SpamBlacklistHooks.php
+++ b/SpamBlacklistHooks.php
@@ -25,7 +25,8 @@
}
// get the link from the not-yet-saved page content.
- $pout = $content->getParserOutput( $title );
+ // no need to generate html to get external links
+ $pout = $content->getParserOutput( $title, null, null, false );
$links = array_keys( $pout->getExternalLinks() );
// HACK: treat the edit summary as a link
--
To view, visit https://gerrit.wikimedia.org/r/143331
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I8c44c8c306f5f20cb5edd8314bf53e3483e314b7
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/SpamBlacklist
Gerrit-Branch: master
Gerrit-Owner: Aude <[email protected]>
Gerrit-Reviewer: Anomie <[email protected]>
Gerrit-Reviewer: Daniel Kinzler <[email protected]>
Gerrit-Reviewer: Hoo man <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits