https://bugzilla.wikimedia.org/show_bug.cgi?id=36492

       Web browser: ---
             Bug #: 36492
           Summary: Extension:UserDailyContribs counts null edits as edits
           Product: MediaWiki extensions
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General/Unknown
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified
   Mobile Platform: ---


The extensions UserDailyContribs seems to include null edits in its edit
counts. 

This can be seen at [1] where the edit count for the last 180 days is larger
than the total edit count for the user.

I think it is caused by the ArticleSaveComplete function in
UserDailyContribs.hooks.php[2]. That function updates the count without
checking if any change was made. I think such checks can be made with $revision
or $status of the ArticleSaveComplete hook[3].


[1]
http://sv.wikipedia.org/w/api.php?action=userdailycontribs&user=ErfgoedBot&daysago=180&format=xml

[2]
http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/UserDailyContribs/UserDailyContribs.hooks.php?revision=91244&view=markup#l38

[3] http://www.mediawiki.org/wiki/Manual:Hooks/ArticleSaveComplete

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to