|
@@ -294,7 +294,7 @@ func (prov *ProvisioningAPI) ListContacts(w http.ResponseWriter, r *http.Request
|
|
augmentedContacts := map[types.JID]interface{}{}
|
|
augmentedContacts := map[types.JID]interface{}{}
|
|
for jid, contact := range contacts {
|
|
for jid, contact := range contacts {
|
|
var avatarUrl id.ContentURI
|
|
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
|
|
avatarUrl = puppet.AvatarURL
|
|
}
|
|
}
|
|
augmentedContacts[jid] = map[string]interface{}{
|
|
augmentedContacts[jid] = map[string]interface{}{
|