lib/media_wiki/gateway.rb in mediawiki-gateway-0.3.7 vs lib/media_wiki/gateway.rb in mediawiki-gateway-0.3.8
- old
+ new
@@ -490,10 +490,9 @@
# [comment] Comment to add to review (optional)
def review(title, flags, comment = "Reviewed by MediaWiki::Gateway")
raise "No article found" unless revid = revision(title)
form_data = {'action' => 'review', 'revid' => revid, 'token' => get_token('edit', title), 'comment' => comment}
form_data.merge!( Hash[flags.map {|k,v| ["flag_#{k}", v]}] )
- puts form_data.inspect
res, dummy = make_api_request(form_data)
res
end
private