-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
a quick and dirty fix to getToken #91
Conversation
in newer versions of mediawiki action: " 'query', meta: 'tokens' " is required to get the token.
@lagleki, can you be more specific on "newer version of mediawiki"?
|
Looks like they implemented that in somewhere in August 2014: But I agree that this fix makes older wikis not work so maybe a new flag in 2016-01-14 20:11 GMT+03:00 Maciej Brencz notifications@github.com:
|
If this is a breaking change, why not fetch the wiki's version on initial load via {
"batchcomplete": "",
"query": {
"general": {
"mainpage": "Main Page",
"base": "https://en.wikipedia.org/wiki/Main_Page",
"sitename": "Wikipedia",
"logo": "//en.wikipedia.org/static/images/project-logos/enwiki.png",
"generator": "MediaWiki 1.27.0-wmf.18", /* This corresponds to the version in "Special:Version" */
/* ... */ That way, |
Or even simpler. Fallback to the new behavior if the old one returns an Em sábado, 26 de março de 2016, Smiley Barry notifications@github.com
|
@smiley good idea. Let's detect the MW version (lazy fetch it once for each |
Has this already been implemented? |
Not yet, let's first implement the MW version detection (which I'm working on right now). |
@lagleki: done. Thanks for suggesting the change :) |
in newer versions of mediawiki action: " 'query', meta: 'tokens' " is required to get the token.