Yuvipanda has uploaded a new change for review. https://gerrit.wikimedia.org/r/137930
Change subject: Apply Mobile App edit tag only to edits ...................................................................... Apply Mobile App edit tag only to edits Change-Id: Idb913cacdc0696a7e18c8d8b0a2c33bcda59b850 --- M MobileApp.hooks.php 1 file changed, 8 insertions(+), 4 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileApp refs/changes/30/137930/1 diff --git a/MobileApp.hooks.php b/MobileApp.hooks.php index 2e68e57..ba75a54 100644 --- a/MobileApp.hooks.php +++ b/MobileApp.hooks.php @@ -25,10 +25,14 @@ $userAgent = $wgRequest->getHeader( "User-agent" ); if ( strpos( $userAgent, "WikipediaApp/" ) === 0 ) { // This is from the app! - $rcId = $rc->getAttribute( 'rc_id' ); - $revId = $rc->getAttribute( 'rc_this_oldid' ); - $logId = $rc->getAttribute( 'rc_logid' ); - ChangeTags::addTags( 'mobile app edit', $rcId, $revId, $logId ); + $logType = $rc->getAttribute( 'rc_log_type' ); + // Only apply tag for edits, nothing else + if ( is_null( $logType ) ) { + $rcId = $rc->getAttribute( 'rc_id' ); + $revId = $rc->getAttribute( 'rc_this_oldid' ); + $logId = $rc->getAttribute( 'rc_logid' ); + ChangeTags::addTags( 'mobile app edit', $rcId, $revId, $logId ); + } } return true; } -- To view, visit https://gerrit.wikimedia.org/r/137930 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Idb913cacdc0696a7e18c8d8b0a2c33bcda59b850 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/MobileApp Gerrit-Branch: master Gerrit-Owner: Yuvipanda <yuvipa...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits