diff --git a/provisioning.go b/provisioning.go index 93fe394..04b7203 100644 --- a/provisioning.go +++ b/provisioning.go @@ -294,7 +294,7 @@ func (prov *ProvisioningAPI) ListContacts(w http.ResponseWriter, r *http.Request augmentedContacts := map[types.JID]interface{}{} for jid, contact := range contacts { var avatarUrl id.ContentURI - if puppet := prov.bridge.DB.Puppet.Get(jid); puppet != nil { + if puppet := prov.bridge.GetPuppetByJID(jid); puppet != nil { avatarUrl = puppet.AvatarURL } augmentedContacts[jid] = map[string]interface{}{