mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Fix category edits (#1823)
This commit is contained in:
parent
634814e9d0
commit
7dee0a45b1
1 changed files with 6 additions and 3 deletions
|
|
@ -270,7 +270,8 @@ public class ApacheHttpClientMediaWikiApi implements MediaWikiApi {
|
||||||
public String edit(String editToken, String processedPageContent, String filename, String summary) throws IOException {
|
public String edit(String editToken, String processedPageContent, String filename, String summary) throws IOException {
|
||||||
return api.action("edit")
|
return api.action("edit")
|
||||||
.param("title", filename)
|
.param("title", filename)
|
||||||
.param("token", editToken)
|
.param("token", getEditToken())
|
||||||
|
.param("centralauthtoken", getCentralAuthToken())
|
||||||
.param("text", processedPageContent)
|
.param("text", processedPageContent)
|
||||||
.param("summary", summary)
|
.param("summary", summary)
|
||||||
.post()
|
.post()
|
||||||
|
|
@ -283,7 +284,8 @@ public class ApacheHttpClientMediaWikiApi implements MediaWikiApi {
|
||||||
public String appendEdit(String editToken, String processedPageContent, String filename, String summary) throws IOException {
|
public String appendEdit(String editToken, String processedPageContent, String filename, String summary) throws IOException {
|
||||||
return api.action("edit")
|
return api.action("edit")
|
||||||
.param("title", filename)
|
.param("title", filename)
|
||||||
.param("token", editToken)
|
.param("token", getEditToken())
|
||||||
|
.param("centralauthtoken", getCentralAuthToken())
|
||||||
.param("appendtext", processedPageContent)
|
.param("appendtext", processedPageContent)
|
||||||
.param("summary", summary)
|
.param("summary", summary)
|
||||||
.post()
|
.post()
|
||||||
|
|
@ -295,7 +297,8 @@ public class ApacheHttpClientMediaWikiApi implements MediaWikiApi {
|
||||||
public String prependEdit(String editToken, String processedPageContent, String filename, String summary) throws IOException {
|
public String prependEdit(String editToken, String processedPageContent, String filename, String summary) throws IOException {
|
||||||
return api.action("edit")
|
return api.action("edit")
|
||||||
.param("title", filename)
|
.param("title", filename)
|
||||||
.param("token", editToken)
|
.param("token", getEditToken())
|
||||||
|
.param("centralauthtoken", getCentralAuthToken())
|
||||||
.param("prependtext", processedPageContent)
|
.param("prependtext", processedPageContent)
|
||||||
.param("summary", summary)
|
.param("summary", summary)
|
||||||
.post()
|
.post()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue