mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-23 12:30:29 +01:00
Skip loading gravatars if user has third party icons deselected
This commit is contained in:
@@ -6,7 +6,7 @@ import { services } from '../services';
|
||||
import { utilDetect } from '../util/detect';
|
||||
|
||||
|
||||
export function uiNoteComments() {
|
||||
export function uiNoteComments(context) {
|
||||
var _note;
|
||||
|
||||
|
||||
@@ -76,8 +76,9 @@ export function uiNoteComments() {
|
||||
|
||||
|
||||
function replaceAvatars(selection) {
|
||||
var showThirdPartyIcons = context.storage('preferences.privacy.thirdpartyicons') || 'true';
|
||||
var osm = services.osm;
|
||||
if (!osm) return;
|
||||
if (showThirdPartyIcons !== 'true' || !osm) return;
|
||||
|
||||
var uids = {}; // gather uids in the comment thread
|
||||
_note.comments.forEach(function(d) {
|
||||
|
||||
@@ -28,7 +28,7 @@ import {
|
||||
export function uiNoteEditor(context) {
|
||||
var dispatch = d3_dispatch('change');
|
||||
var quickLinks = uiQuickLinks();
|
||||
var noteComments = uiNoteComments();
|
||||
var noteComments = uiNoteComments(context);
|
||||
var noteHeader = uiNoteHeader();
|
||||
|
||||
// var formFields = uiFormFields(context);
|
||||
|
||||
Reference in New Issue
Block a user