https://bugzilla.wikimedia.org/show_bug.cgi?id=29212
--- Comment #2 from [email protected] 2011-06-08 20:26:09 UTC --- (In reply to comment #0) > Wouldn't be better to hide the tool if the article was created a few moments > ago and is being viewed by its own author? Or, at least, to avoid that > specific > question of the survey? This could be made by changing the 'condition' used in the 'edit' pitch[1]. Before returning "isPitchVisible( 'edit' )", the script could do an API call to get the timestamp+user of the last few revision(s)[2] of the page and check if the the current user was (or is among) the last editors of the page, returning false if he is. The same API data would provide the information needed to determine if the article was recently created: in this case there would be only one revision in the page history. Alternatively, such info could be provided by means of some mw.config.get('wgVariable') which would be available for the ext.articleFeedback module without needing to do an API request [1] http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/ArticleFeedback/modules/ext.articleFeedback/ext.articleFeedback.js?revision=89360&view=markup#l276 [2] https://secure.wikimedia.org/wikipedia/en/w/api.php?format=jsonfm&action=query&prop=revisions&titles=Main%20Page&rvlimit=5&rvprop=timestamp|user -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
