Allow querying contributions of interwiki usernames
[lhc/web/wiklou.git] / includes / api / ApiQueryUserContributions.php
index e587ef4..bb4a2ef 100644 (file)
@@ -245,7 +245,7 @@ class ApiQueryContributions extends ApiQueryBase {
                                        );
                                }
 
-                               if ( User::isIP( $u ) ) {
+                               if ( User::isIP( $u ) || ExternalUserNames::isExternal( $u ) ) {
                                        $names[$u] = null;
                                } else {
                                        $name = User::getCanonicalName( $u, 'valid' );