Commit graph

16 commits

Author SHA1 Message Date
Aaron Schulz d29aca496a Improve use of edit stash hook to check links
In the common case where no banned links were found, cache this
information to skip the checks on save.

Change-Id: I5f936622bc62d9fc905edaa2a69f52388c047d10
2016-07-10 16:17:51 -07:00
Kunal Mehta 0d9494cc45 Fix file permissions
Change-Id: I19de3ded6b17cdde7edce45ba3dee4dccfd29725
2016-06-09 16:18:31 -07:00
Aaron Schulz 2acfb30bfc Pre-cache the link list for external link filters
* This works via plugging into ApiStashEdit.
* The query is relatively slow per performance.wikimedia.org/xenon/svgs/daily/2016-02-15.index.svgz.

Change-Id: I0ad5289324b5482db7e2276f58fc1ac140250d47
2016-02-18 14:36:42 +00:00
umherirrender bd42360e7a PHP 7 compatibility: Fix variable interpolation in BaseBlacklist.php
Bug: T115254
Change-Id: Ibfb54f573e27f6048c2266cf4cdf06121d86ba9f
2015-12-03 19:41:12 +01:00
Aaron Schulz bc34d32d50 Update getWithSetCallback() callers to the newer signature
Change-Id: I7f1290195e1a4be074703537b9384646d068b487
2015-10-07 19:19:08 -07:00
Aaron Schulz 7a02693e9b Added local blacklist caching
* Also cleaned up the shared blacklist keys
* The cache keys now use getWithSetCallback(), which does
  things like preemptive re-caching to avoid cache slams

Change-Id: Ifda27edaf76770e84b4ece711d3c8bcb8e924674
2015-07-30 23:03:50 +00:00
Aaron Schulz 47f14e51c3 Made getArticleText() plausibly work unlike before
* This could only have worked with local pages before.

Change-Id: Iebc7b77249105d896c3f3b49119ff0b5ba56f204
2015-07-28 14:21:24 -07:00
jenkins-bot 3ba94f683b Merge "Declare BaseBlacklist::filter interface to avoid IDE warnings" 2015-06-25 17:57:51 +00:00
Aaron Schulz 5908dd9a3d Declare BaseBlacklist::filter interface to avoid IDE warnings
Change-Id: I84ee4bcb370d2027f5879a921455fffc9a808e9a
2015-06-25 10:54:35 -07:00
Marius Hoch 496508099f Support protocol relative and https URLs
Bug: T94591
Change-Id: I42c6ed218293fdd86495a54b1b1828cc68d474ae
2015-06-16 01:34:57 +02:00
Aaron Schulz ca55c42a1e Conversion to using WAN cache
Bug: T93141
Change-Id: I67fa3e6e6d348953472a565bdbeccd8298c80f58
2015-04-30 01:32:35 +00:00
Chad Horohoe d46d9b0c51 Remove obvious function-level profiling
Change-Id: I2270b936a1502df07f0dae529b0180908c70c58a
2015-02-10 14:07:45 -08:00
Ori Livneh 5fc93321a7 MWException -> Exception
Change-Id: I42842b0d8061d47b53847be6019fe1aed6dc13c9
2015-01-09 19:04:35 -08:00
Siebrand Mazeland e9874344aa Maintenance for SpamBlacklist extension.
* Replace deprecated methods. MediaWiki 1.19 required.
* Replace <tt> with <code>.
* Update documentation.
* Use WikiPage instead of Article for doEdit().
* Use __DIR__ instead of dirname( __FILE__ ).
* Remove superfluous newlines.

Change-Id: I3a0e42ca404638f7c7934c316735ad11cbc99d42
2012-09-03 16:50:18 +02:00
John Du Hart aaf4d74d18 Adding Email blacklisting to the SpamBlacklist extension
This relies on r109111
2012-01-18 23:29:37 +00:00
John Du Hart 62b2bde146 Refactored SpamBlacklist to be extendable for other blacklist types
This is the groundwork for Bug 33761
2012-01-17 06:13:46 +00:00