Ladsgroup has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/264293

Change subject: Don't show the r flag when edit is patrolled
......................................................................

Don't show the r flag when edit is patrolled

Change-Id: Ieccc523d2ac653949a9500f22cbafe0491eed6a1
---
M includes/Hooks.php
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ORES 
refs/changes/93/264293/1

diff --git a/includes/Hooks.php b/includes/Hooks.php
index 7833a42..31fa02d 100644
--- a/includes/Hooks.php
+++ b/includes/Hooks.php
@@ -172,7 +172,8 @@
                global $wgOresDamagingThreshold;
 
                $score = $rcObj->getAttribute( 'ores_probability' );
-               if ( $score && $score >= $wgOresDamagingThreshold ) {
+               $patrolled = $rcObj->getAttribute( 'rc_patrolled' );
+               if ( $score && $score >= $wgOresDamagingThreshold && 
!$patrolled ) {
                        return true;
                } else {
                        return false;

-- 
To view, visit https://gerrit.wikimedia.org/r/264293
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ieccc523d2ac653949a9500f22cbafe0491eed6a1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ORES
Gerrit-Branch: master
Gerrit-Owner: Ladsgroup <ladsgr...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to