Commit graph

24 commits

Author SHA1 Message Date
Umherirrender 1cdb1d25c8 Use MediaWikiServices::getMessageCache
This required MediaWiki 1.34

Change-Id: I86291dfaf83cdeeb96693979272bf7d4589d650f
2020-03-14 14:20:50 +01:00
Dan Andreescu a72c0f339a Abandon EventLogging instrumentation
The instrumentation attempted here has been implemented more correctly
by https://phabricator.wikimedia.org/T214706.  This change removes
instrumentation from this extension.  It should not affect much,
because emitting events was already disabled.

Bug: T162365
Change-Id: I8f02c62d41260a62b37a7738d69c039d2ce7562f
2019-07-15 16:52:17 -04:00
MarcoAurelio 8d5c1cbe34 Split 'apihelp-*' messages into a 'i18n/api/.*' folder
Bug: T189982
Bug: T214367
Change-Id: Ibd078dca05959fbeeb91330c1d400c525e65c2f3
2019-01-22 21:27:50 +00:00
Bartosz Dziewoński c47e43c234 Add mobile target to VE plugin modules
Bug: T213774
Change-Id: I6f235df35277180f7c265fc73cd43f1f649dbf4f
2019-01-15 01:05:52 +01:00
Ed Sanders 02ada1b4f2 Move in VE support code from the VE extension
Depends-On: I036ee32847cc3b25a1cc478247cfe54599781098
Change-Id: I1807a5d3d99ecab2bf4545a1bab3aa3f2ae64da8
2018-11-29 17:22:29 +00:00
Kunal Mehta d6f826bd1f Unbreak and modernize cleanup.php
Bumped MediaWiki requirement for usage of Maintenance::fatalError(),
which was introduced in 1.31.

Change-Id: I24446b93d47184907847ed825b42735a74fbddf0
2018-04-06 10:58:25 -07:00
Kunal Mehta ac0204b70a Move classes to includes/
Change-Id: Ica7abee84a4e17c530cb755687849a998068be70
2018-02-24 17:08:28 -08:00
Jayprakash12345 06f33d1142 Use SPDX 3.0 license identifier
Bug: T183858
Change-Id: I22c211068bc88ac02a6441a58e8d225eded86422
2018-01-29 05:58:22 +00:00
Kunal Mehta e62376620d Make spamblacklist log viewable by logged-in users by default
The main rationale for keeping this log private is to that scanners and things
don't see a huge list of spammy URLs and treat that website as spam itself.

There's no actual private content in here since the regular expressions are
public, so making it available to all users is fine.

Change-Id: I6da473b7cbac2c6fd507bde5c970d701e5ac249e
2018-01-21 21:37:46 -08:00
Reedy 4ef71c3d88 Remove pre-authmanager code
Bug: T178032
Change-Id: I25e46fb95c2132bc90f417de735d0fd145f3d05b
2017-10-12 01:41:06 +00:00
Matěj Suchánek 3d5392403b Escape url in Special:Log
When there is a "$1" in the url, it is treated like a message parameter
and replaced.

See https://www.wikidata.org/w/index.php?title=Special:Log&type=spamblacklist&page=Property:P2536.

Change-Id: Ia223a89e12c652a87d52a18c78e612b4b12871bc
2017-01-22 11:04:35 +00:00
Brad Jorsch d2e27163bf Add spamblacklistlog to viewrestrictedlogs grant
Bug: T149235
Depends-On: I8e2304e7b6f2af0c3d21d7d7390e4979b8eaee39
Change-Id: Icb7e404273d1fc957392d2a1dafbb0d33101e349
2016-10-26 15:28:24 -04: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 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