Commit graph

731 commits

Author SHA1 Message Date
Translation updater bot 5940064f84 Localisation updates from https://translatewiki.net.
Change-Id: I1a8fec5c6a2a83ccc9d07db7bd83aa0949839962
2016-10-25 23:18:13 +02:00
Chad Horohoe cb2ab5398b Whoops, track not trace
Change-Id: Ia4e72fc8b415559656e23d178fcbf3251ee5b3e9
2016-10-24 17:03:46 -07:00
Chad Horohoe e3dcbf79e1 Swapping defaultbranch for trace
The former is a maintenance nightmare when branching.

Bug:T146293
Change-Id: I09f02c827c5d93d4540231173f3b7ecfbfd17808
2016-10-24 16:38:30 -07:00
Translation updater bot 0a6edafa09 Localisation updates from https://translatewiki.net.
Change-Id: I4c24d5667fd64082e17392989521661c29d6ea5b
2016-10-24 22:49:32 +02:00
Translation updater bot 4e3235cdc1 Localisation updates from https://translatewiki.net.
Change-Id: Icb088212faa57b4b578e67916e380fc3d2f467c5
2016-10-16 22:44:45 +02:00
Translation updater bot ca20e69daa Localisation updates from https://translatewiki.net.
Change-Id: I3022568aaa35e7b8e51344f09a098f8f9a8ab114
2016-10-15 23:08:38 +02:00
jenkins-bot 513231a39b Merge "Replace Revision::getText()" 2016-10-06 00:48:03 +00:00
Translation updater bot 18236d9d31 Localisation updates from https://translatewiki.net.
Change-Id: I4f50fd2e1c2c855ed8dfe2e49490b0f864cc6665
2016-10-05 22:45:09 +02:00
Reedy dcfde5b39f Replace Revision::getText()
Bug: T147380
Change-Id: I07c80b57fd2c8f9264dd30dd9293f0ac4dcb6071
2016-10-05 00:33:30 +01:00
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 2cac3f9ecd Fix Schema:ExternalLinksChange logging if no links are left on page
If there are no links left on the page, we would avoid invoking the spam
blacklist filtering entirely, to avoid having to do blacklist lookups,
etc. However, since we want link removal data, explicitly check for this
scenario and mark all current links as removals, and avoid invoking the
rest of the spam blacklist code.

Bug: T115119
Change-Id: I0bcd5b55594e38c0508b21db2c45e5136123efa0
2016-09-29 14:11:33 +00:00
Translation updater bot c0379a5a72 Localisation updates from https://translatewiki.net.
Change-Id: I4b989a08add1dc2e54f1115ad26a303d396ab350
2016-09-22 23:42:11 +02:00
Brad Jorsch 7763a5b090 Remove pre-1.25 API compatibility code
Since this extension uses extension.json, it already requires 1.25+ so
no need to keep the old code around.

Change-Id: Ifc18b7259d5895e95c4924fa3b963185d4bda1e3
2016-09-20 15:32:17 -04:00
Translation updater bot b50149edd8 Localisation updates from https://translatewiki.net.
Change-Id: Ic669f733a0e34c8ea53b93561a417e24ebd90c35
2016-09-19 23:00:42 +02:00
Translation updater bot c89fdadeb2 Localisation updates from https://translatewiki.net.
Change-Id: I606c85de0a074c08f01fe8b0e7fb4082915534a1
2016-09-17 23:22:20 +02:00
Reedy 2cf3db6517 Replace WikiPage::doEdit
Bug: T145745
Change-Id: I73247a0b115556b70d2aa9954f4d797c4a427935
2016-09-15 20:54:09 +01:00
Translation updater bot 3690acd5ee Localisation updates from https://translatewiki.net.
Change-Id: Iac04e33efa1dedd7886a684e3fde968a31f7c99d
2016-09-13 22:56:27 +02:00
Translation updater bot e2c93dcdca Localisation updates from https://translatewiki.net.
Change-Id: Id9b52fa31e6e3ef03079aedc71dda8037c39cf9e
2016-09-09 22:58:56 +02:00
jenkins-bot edf0a0e1ec Merge "Actually use STASH_TTL constant and bump it to 3 minutes" 2016-09-09 02:58:34 +00:00
Aaron Schulz 18d21ae86a Actually use STASH_TTL constant and bump it to 3 minutes
Change-Id: Ia50296919a5c8bdeb63496397c538f39d43c4d54
2016-09-09 01:22:06 +00:00
Aaron Schulz f051498dcc Fix links passed to filter() for stashing to match edit checks
Change-Id: I8f1b2c4d3033015de0e9a6d58776fe0ad32c4775
2016-09-08 17:47:09 -07:00
Translation updater bot f33e163339 Localisation updates from https://translatewiki.net.
Change-Id: Ib4789ca0a590e940ac7903819d784c565c1cd4d6
2016-09-04 22:33:07 +02:00
Translation updater bot 5bed99d67f Localisation updates from https://translatewiki.net.
Change-Id: I27e173d90280e52dab121ab4af217aaf8aa24620
2016-08-31 22:38:03 +02:00
Aaron Schulz 2efbca9a6c Fix bogus stats where stashes counted as misses
Also renew stash values if they will expire soon.

Change-Id: I36771f5736f80546aac99409463293c7699fb5de
2016-08-30 06:54:03 +00:00
Matthias Mullie 21de00842b Add 'message' property to API output
Bug: T141492
Change-Id: I357a563397cbc13c1cfbe3cbefb876408021ecb6
2016-08-17 11:53:47 +02: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
jenkins-bot b0960c4691 Merge "Filter file uploads" 2016-07-27 22:24:51 +00:00
Matthias Mullie dee68e3ab1 Filter file uploads
Bug: T134453
Change-Id: I140e8fec71e05db9e4625400e9a9dfe9a42d9635
2016-07-22 16:02:50 +02:00
Translation updater bot 51228e20a6 Localisation updates from https://translatewiki.net.
Change-Id: Ia2b6eed07a49fe6b179c59f20506da1da23a0f15
2016-07-21 23:00:59 +02:00
Translation updater bot 46dac48027 Localisation updates from https://translatewiki.net.
Change-Id: I2c39a8c8894da512ffc77d6b01304711127d62b2
2016-07-20 22:42:24 +02:00
Aaron Schulz 1413058be9 Add spamblacklist.check-stash.store metric
Change-Id: I7990d7b0681b667015d4db68c0be8234dde4ce28
2016-07-15 06:39:53 -07:00
jenkins-bot e5227407a8 Merge "Improve use of edit stash hook to check links" 2016-07-10 23:33:02 +00:00
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
jenkins-bot 2e9ae98b8a Merge "Fix bugs in Schema:ExternalLinksChange code" 2016-07-06 02:04:41 +00:00
jenkins-bot 12349ce7bc Merge "Make event logging respect $preventLog in filter()" 2016-06-30 22:04:08 +00:00
Aaron Schulz 5729b7abe4 Make event logging respect $preventLog in filter()
Change-Id: Ia97cc1fbb8fdd4cc3fa64adc897fff8e559d0e85
2016-06-30 14:55:24 -07:00
Translation updater bot 55d6b45b73 Localisation updates from https://translatewiki.net.
Change-Id: I9339fb480c79b1537500456b76b14e6e94d77b82
2016-06-26 14:21:53 +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
Kunal Mehta a69fe26b94 Fix bugs in Schema:ExternalLinksChange code
* Have SpamBlacklist::doLogging() actually run
* Bump schema ID so userId property is an integer
* Don't try logging URLs that were unable to be parsed
* Make sure path/query/fragment are always strings

Bug: T115119
Change-Id: Ia81037e8939dd547f00e79c169fa84ca0a7b917e
2016-06-22 12:18:11 +02:00
Translation updater bot 539394b588 Localisation updates from https://translatewiki.net.
Change-Id: I137ddd03960c85516afc01b636ecc33ff984b2e3
2016-06-19 22:45:30 +02:00
Translation updater bot 0947d6b2f9 Localisation updates from https://translatewiki.net.
Change-Id: I91f5a4d65511ffaecdc245b4187b8b964bac3a36
2016-06-15 22:39:12 +02:00
Kunal Mehta 0d9494cc45 Fix file permissions
Change-Id: I19de3ded6b17cdde7edce45ba3dee4dccfd29725
2016-06-09 16:18:31 -07:00
Timo Tijhof 19afb10841 Clear the queue when logging is done
Follows-up 5910bfd7ba.

* Remove one-off $domain variable.
* Rename $urlChanges to highlight that urlChanges is a log of changes,
  not a list of changes to be applied.
* Rename doEventLogging() to isLoggingEnabled().

Change-Id: Idbd6551502362422beea4d86b912128a43e9c96b
2016-05-23 16:29:21 -07:00
Kaldari ecb2f3fbfa Making logging code less fragile and using better function name
These changes are in responce to code comments at
https://gerrit.wikimedia.org/r/#/c/263145/4/SpamBlacklist_body.php

Change-Id: I328d7cd473b692c6cdeb170bcc579c9e3154617c
2016-05-23 10:51:45 -07:00
Brad Jorsch 6ee605a088 Use User::newSystemUser when available
Change-Id: I0be561ff0a28a728451224239e20f243543c311d
2016-05-13 14:35:41 -04: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 83b178eee6 Merge "Switching to properly spelled schema to avoid confusion" 2016-05-02 16:00:41 +00:00
Kaldari deebe10498 Switching to properly spelled schema to avoid confusion
Change-Id: I029173d8821394a411b78009c2f63210c0a95df0
2016-05-02 09:50:59 -06:00
jenkins-bot 211e88c042 Merge "Log URL changes to EventLogging if configured" 2016-05-02 15:49:29 +00:00
Translation updater bot 4e468a296a Localisation updates from https://translatewiki.net.
Change-Id: Icfec7946832a989a18f12b0f48bd0c31029308c0
2016-04-26 22:31:54 +02:00