Dbrant has uploaded a new change for review.

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

Change subject: Explicitly set "mobile edit" tag.
......................................................................

Explicitly set "mobile edit" tag.

Since the Android app no longer issues API requests through the mdot
domain, its edits are not getting marked as "mobile edit", which throws
off queries by users who want to track mobile edits.

This patch explicitly adds the "mobile edit" tag, in addition to the
existing "mobile app edit" tag, to edits that come from the app. This does
not seem to conflict with the MobileFrontend extension conditionally
adding the same tag.

Bug: T141667
Change-Id: I2e07c0264d7f7129dd476310d0e3199793ee8214
---
M MobileApp.hooks.php
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileApp 
refs/changes/18/313618/1

diff --git a/MobileApp.hooks.php b/MobileApp.hooks.php
index e7c0ee8..2f9a3dd 100644
--- a/MobileApp.hooks.php
+++ b/MobileApp.hooks.php
@@ -10,6 +10,7 @@
         * @return bool
         */
        public static function onListDefinedTags( array &$tags ) {
+               $tags[] = 'mobile edit';
                $tags[] = 'mobile app edit';
                return true;
        }
@@ -34,7 +35,7 @@
                        ( $isWikipediaApp && is_null( $logType ) )
                        || ( $isCommonsApp && ( is_null( $logType ) || $logType 
== 'upload' ) )
                ) {
-                       $rc->addTags( 'mobile app edit' );
+                       $rc->addTags( [ 'mobile edit', 'mobile app edit' ] );
                }
                return true;
        }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2e07c0264d7f7129dd476310d0e3199793ee8214
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileApp
Gerrit-Branch: master
Gerrit-Owner: Dbrant <[email protected]>

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

Reply via email to