File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
app/src/main/java/fr/free/nrw/commons/wikidata Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -48,12 +48,17 @@ public class WikidataEditService {
4848 * @param wikidataEntityId
4949 * @param fileName
5050 */
51- public void createClaimWithLogging (String wikidataEntityId , String fileName ) {
51+ public void createClaimWithLogging (String wikidataEntityId , String fileName , String p18Value ) {
5252 if (wikidataEntityId == null ) {
5353 Timber .d ("Skipping creation of claim as Wikidata entity ID is null" );
5454 return ;
5555 }
5656
57+ if (!p18Value .trim ().isEmpty ()) {
58+ Timber .d ("Skipping creation of claim as p18Value is not null, we won't override existing image" );
59+ return ;
60+ }
61+
5762 if (fileName == null ) {
5863 Timber .d ("Skipping creation of claim as fileName entity ID is null" );
5964 return ;
You can’t perform that action at this time.
0 commit comments