Class: MediaWiki::Client
- Inherits:
-
Object
- Object
- MediaWiki::Client
- Defined in:
- lib/wikidata_position_history.rb
Overview
mediawiki-page-replaceable_content does not provide a way to set a bot flag, so we need to monkey patch it. This should really be exposed somewhere in its interface.
Instance Method Summary collapse
Instance Method Details
#edit(hash) ⇒ Object
24 25 26 27 |
# File 'lib/wikidata_position_history.rb', line 24 def edit(hash) hash['bot'] = ENV['PHH_BOT'] if ENV.key?('PHH_BOT') wrapped_client.edit(hash) end |