Fix #6188 (Nearby upload not being linked from Wikidata), though it introduces issue #6191

* Make neccesary changes

* Make neccesary changes

* spacing

---------

Co-authored-by: Nicolas Raoul <nicolas.raoul@gmail.com>
This commit is contained in:
Sujal 2025-02-17 19:32:45 +05:30 committed by GitHub
parent 7a685b1241
commit 40241b4142
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ class ResultTuple {
} }
constructor() { constructor() {
language = "" language = "bug" // Basa Ugi language - TODO Respect the `Default description language` setting.
type = "" type = ""
value = "" value = ""
} }

View file

@ -469,7 +469,7 @@ class UploadWorker(
contribution: Contribution, contribution: Contribution,
) { ) {
val wikiDataPlace = contribution.wikidataPlace val wikiDataPlace = contribution.wikidataPlace
if (wikiDataPlace != null && wikiDataPlace.imageValue == null) { if (wikiDataPlace != null) {
if (!contribution.hasInvalidLocation()) { if (!contribution.hasInvalidLocation()) {
var revisionID: Long? = null var revisionID: Long? = null
try { try {