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

Change subject: If the user is in the bot group, mark the edits as bot
......................................................................


If the user is in the bot group, mark the edits as bot

This adds the optional &bot=1 flag to edits made by the bot,
if the bot is not in the "bot" group it will silently be ignored.

Bug: 41637
Change-Id: I0fbe0646a7e611202cea921d422ba14598988045
---
M TranslationNotificationJob.php
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Ori.livneh: Looks good to me, but someone else must approve
  Siebrand: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/TranslationNotificationJob.php b/TranslationNotificationJob.php
index 177b18c..ee857d6 100644
--- a/TranslationNotificationJob.php
+++ b/TranslationNotificationJob.php
@@ -195,6 +195,7 @@
                                        // in this case, because sometimes 
people redirect a Latin
                                        // username to a username in their 
script.
                                        'redirect' => '',
+                                       'bot' => '1', // This will be ignored 
if the user doesn't have the "bot" userright
                                )
                        )
                );

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I0fbe0646a7e611202cea921d422ba14598988045
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/TranslationNotifications
Gerrit-Branch: master
Gerrit-Owner: Legoktm <legoktm.wikipe...@gmail.com>
Gerrit-Reviewer: Legoktm <legoktm.wikipe...@gmail.com>
Gerrit-Reviewer: MZMcBride <w...@mzmcbride.com>
Gerrit-Reviewer: Ori.livneh <o...@wikimedia.org>
Gerrit-Reviewer: Siebrand <siebr...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to