Skip to content

Commit 6a9018b

Browse files
sherlockbeardnicolas-raoul
authored andcommitted
replaced wikidatCreateClaim to wikidataCreateClaim (commons-app#3010)
1 parent 69e23b7 commit 6a9018b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/src/main/java/fr/free/nrw/commons/mwapi/ApacheHttpClientMediaWikiApi.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ public String getWikidataCsrfToken() throws IOException {
410410
*/
411411
@Nullable
412412
@Override
413-
public String wikidatCreateClaim(String entityId, String property, String snaktype, String value) throws IOException {
413+
public String wikidataCreateClaim(String entityId, String property, String snaktype, String value) throws IOException {
414414
Timber.d("Filename is %s", value);
415415
CustomApiResult result = wikidataApi.action("wbcreateclaim")
416416
.param("entity", entityId)

app/src/main/java/fr/free/nrw/commons/mwapi/MediaWikiApi.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Single<UploadResult> uploadFileFinalize(String filename, String filekey,
5959
String appendEdit(String editToken, String processedPageContent, String filename, String summary) throws IOException;
6060

6161
@Nullable
62-
String wikidatCreateClaim(String entityId, String property, String snaktype, String value) throws IOException;
62+
String wikidataCreateClaim(String entityId, String property, String snaktype, String value) throws IOException;
6363

6464
@Nullable
6565
boolean addWikidataEditTag(String revisionId) throws IOException;

app/src/main/java/fr/free/nrw/commons/wikidata/WikidataEditService.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ private void editWikidataProperty(String wikidataEntityId, String fileName) {
7979
Timber.d("Attempting to edit Wikidata property %s", wikidataEntityId);
8080
Observable.fromCallable(() -> {
8181
String propertyValue = getFileName(fileName);
82-
return mediaWikiApi.wikidatCreateClaim(wikidataEntityId, "P18", "value", propertyValue);
82+
return mediaWikiApi.wikidataCreateClaim(wikidataEntityId, "P18", "value", propertyValue);
8383
})
8484
.subscribeOn(Schedulers.io())
8585
.observeOn(AndroidSchedulers.mainThread())

0 commit comments

Comments
 (0)