Commit graph

12 commits

Author SHA1 Message Date
Kunal Mehta 637a7435ce Trigger Schema:ExternalLinksChange logging on page deletion
If a page is being deleted, use the ArticleDelete hook to queue a list
of URLs that are being "removed" from the page. The
ArticleDeleteComplete hook will trigger actually sending the logs - so
if something prevents the deletion, nothing will be logged.

Bug: T115119
Change-Id: I32e357bb88305a46251b05714a4ff75b75ae37aa
2016-09-29 14:14:01 +00:00
Kunal Mehta fb4dcf5565 Set $wgBlacklistSettings in extension.json
So people can actually override it without live hacking...

Change-Id: Id3b18b5b255fa1df321d34c4ce39849e1b545eec
2016-07-28 21:24:14 -07:00
Matthias Mullie dee68e3ab1 Filter file uploads
Bug: T134453
Change-Id: I140e8fec71e05db9e4625400e9a9dfe9a42d9635
2016-07-22 16:02:50 +02:00
Brad Jorsch 93df3ed07a Use EditFilterMergedContent instead of APIEditBeforeSave hook
It was only needed for MediaWiki prior to 1.25
(09a5febb7b024c0b6585141bb05cba13a642f3eb).
We no longer support those versions after
5d882775f6.

Bug: T137832
Change-Id: I97f6a3c20476f1a42e3fadc701df5870a30c790c
2016-06-23 17:54:09 +00:00
Gergő Tisza 303ba31639 Update for AuthManager
Needs I8b52ec8ddf494f23941807638f149f15b5e46b0c to
do anything useful.

Bug: T110467
Change-Id: Ifb6fea581a0d0ae8db46e82b6fa6d25239cf3d8e
2016-05-11 22:32:49 +00:00
jenkins-bot 211e88c042 Merge "Log URL changes to EventLogging if configured" 2016-05-02 15:49:29 +00:00
Kunal Mehta 5910bfd7ba Log URL changes to EventLogging if configured
If enabled, changes in URLs on a page will be logged to the
"ExternalLinkChange" schema. To avoid extra lookups, the diff of URLs is
calculated during the filter step of the SpamBlacklist, and stored in
the SpamBlacklist instance state until the post-save hook is called, and
then they are queued to go to EventLogging.

Bug: T115119
Change-Id: I9a5378dca5ab473961f9fe8f7a6d929dc6d32bba
2016-04-25 17:54:48 +02: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
victorbarbu 789348941a Add license information
Bug: T123943
Change-Id: I1ca2c82474f56dfde209e462dc6a128625a96f07
2016-01-23 13:37:12 +02:00
Kunal Mehta e4462852d5 Add MediaWiki version requirement to extension.json
Change-Id: Ia7db16c0d48183c0365e871de4087ed45d8c7309
2015-09-23 08:52:22 -07:00
Kunal Mehta c5e5c1743b Set manifest_version in extension.json
Bug: T100745
Change-Id: Ia23b194b5a12a6b9d6c92740cbe13051640147b1
2015-05-28 20:44:56 -07:00
paladox 5d882775f6 Add extensions.json, empty PHP entry point, remove i18n shim
Bug: T88059
Change-Id: I730a2012609f7dfac3d49012ae14038e6bcac3ae
2015-05-20 19:19:31 +01:00