Skip to content

Commit

Permalink
Use brand logos only from commons.wikimedia.org, not from facebook no…
Browse files Browse the repository at this point in the history
…r twitter openstreetmap#7028
  • Loading branch information
frodrigo committed Nov 9, 2019
1 parent 637840f commit 8940324
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions build_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,15 +293,15 @@ function suggestionsToPresets(presets) {
let logoURL;
let logoURLs = wikidata[qid] && wikidata[qid].logos;
if (logoURLs) {
if (logoURLs.wikidata && preferCommons[qid]) {
// if (logoURLs.wikidata && preferCommons[qid]) {
// logoURL = logoURLs.wikidata;
// } else if (logoURLs.facebook) {
// logoURL = logoURLs.facebook;
// } else if (logoURLs.twitter) {
// logoURL = logoURLs.twitter;
// } else {
logoURL = logoURLs.wikidata;
} else if (logoURLs.facebook) {
logoURL = logoURLs.facebook;
} else if (logoURLs.twitter) {
logoURL = logoURLs.twitter;
} else {
logoURL = logoURLs.wikidata;
}
// }
}

presets[suggestionID] = {
Expand Down

0 comments on commit 8940324

Please sign in to comment.