class MediaWiki::Client

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.

Public Instance Methods

edit(hash) click to toggle source
# 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