jenkins-bot has submitted this change and it was merged.

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(-)

Approvals:
  Ladsgroup: Looks good to me, approved
  jenkins-bot: Verified



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: merged
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]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to