Ladsgroup has uploaded a new change for review.
https://gerrit.wikimedia.org/r/325694
Change subject: Use getThreshold instead of getDamagingThreshold
......................................................................
Use getThreshold instead of getDamagingThreshold
Bug: T152542
Change-Id: I89e8d5a986157ef35e395a312264666fa68a9920
---
M includes/ApiHooks.php
M includes/WatchedItemQueryServiceExtension.php
2 files changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ORES
refs/changes/94/325694/1
diff --git a/includes/ApiHooks.php b/includes/ApiHooks.php
index 697112e..43d22f9 100644
--- a/includes/ApiHooks.php
+++ b/includes/ApiHooks.php
@@ -114,7 +114,7 @@
}
}
- $threshold = Hooks::getDamagingThreshold(
$module->getUser() );
+ $threshold = Hooks::getThreshold( 'damaging',
$module->getUser() );
$dbr = \wfGetDB( DB_REPLICA );
$tables[] = 'ores_model';
diff --git a/includes/WatchedItemQueryServiceExtension.php
b/includes/WatchedItemQueryServiceExtension.php
index f1bbd66..0817248 100644
--- a/includes/WatchedItemQueryServiceExtension.php
+++ b/includes/WatchedItemQueryServiceExtension.php
@@ -46,7 +46,7 @@
? array_flip( $options['filters'] )
: [];
if ( isset( $show['oresreview'] ) || isset(
$show['!oresreview'] ) ) {
- $threshold = Hooks::getDamagingThreshold( $user );
+ $threshold = Hooks::getThreshold( 'damaging', $user );
$tables[] = 'ores_model';
$tables[] = 'ores_classification';
--
To view, visit https://gerrit.wikimedia.org/r/325694
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I89e8d5a986157ef35e395a312264666fa68a9920
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ORES
Gerrit-Branch: wmf/1.29.0-wmf.5
Gerrit-Owner: Ladsgroup <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits