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

Change subject: ApiQueryGlobalUserInfo: Add registration time for local accounts
......................................................................


ApiQueryGlobalUserInfo: Add registration time for local accounts

Bug: T124534
Change-Id: If1777b7558072ff15f474aa3e5be80db7cbbd43d
---
M includes/api/ApiQueryGlobalUserInfo.php
1 file changed, 4 insertions(+), 2 deletions(-)

Approvals:
  Alex Monk: Looks good to me, approved
  Glaisher: Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git a/includes/api/ApiQueryGlobalUserInfo.php 
b/includes/api/ApiQueryGlobalUserInfo.php
index 99bf3ed..7263210 100644
--- a/includes/api/ApiQueryGlobalUserInfo.php
+++ b/includes/api/ApiQueryGlobalUserInfo.php
@@ -91,7 +91,8 @@
                                        'url' => $wiki->getCanonicalServer(),
                                        'timestamp' => wfTimestamp( 
TS_ISO_8601, $account['attachedTimestamp'] ),
                                        'method' => $account['attachedMethod'],
-                                       'editcount' => intval( 
$account['editCount'] )
+                                       'editcount' => intval( 
$account['editCount'] ),
+                                       'registration' => wfTimestamp( 
TS_ISO_8601, $account['registration'] ),
                                );
                                if ( $account['blocked'] ) {
                                        $a['blocked'] = array(
@@ -119,7 +120,8 @@
                        foreach ( $accounts as $account ) {
                                $a = array(
                                        'wiki' => $account['wiki'],
-                                       'editcount' => $account['editCount']
+                                       'editcount' => $account['editCount'],
+                                       'registration' => wfTimestamp( 
TS_ISO_8601, $account['registration'] ),
                                );
                                if ( $account['blocked'] ) {
                                        $a['blocked'] = array(

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

Gerrit-MessageType: merged
Gerrit-Change-Id: If1777b7558072ff15f474aa3e5be80db7cbbd43d
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/CentralAuth
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
Gerrit-Reviewer: Alex Monk <[email protected]>
Gerrit-Reviewer: Glaisher <[email protected]>
Gerrit-Reviewer: Hoo man <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to